wasabee-project / Wasabee-Server

The Server-Side component for the Wasabee Project tools for Enlightened Agents.
MIT License
11 stars 5 forks source link

rate limit firebase sends #4

Closed cloudkucooland closed 5 years ago

cloudkucooland commented 5 years ago

do not send firebase agent location changes more than 1 every 30(?) seconds per operation.

create a map[opID]time at firebase init, check at send-request, update at send.

same for draw changes. no need to send pull requests to agents every 2 seconds when just assigning 200 links and markers to the same 5 agents.

cloudkucooland commented 5 years ago

set to 15 seconds, no distinction between message type. Can add that if necessary.