Skip to content
Jan Vilhuber edited this page Mar 17, 2015 · 15 revisions

Possible Performance Improvements

  • split off the StopToken from the DeviceInfo entry, and let the web-server directly manage it, so we can avoid the RPC call. Possibly even keep it in memory, but then we have to make sure any changes are properly sync'd with the DB. This would also allow us to respond to the client quicker, i.e. generate a stop token, respond and make a go-routine throw the request over to the RPC server.

TODO:

  • Rate limit incoming requests. Use some negroni middleware, preferably (see Utils/middleware.go)
Clone this wiki locally