Safe2COVIDApp / bct-server

Bluetooth Contact Tracing for Covid19 - server
5 stars 1 forks source link

DOS / Scale: Responses above certain size #62

Closed mitra42 closed 4 years ago

mitra42 commented 4 years ago

If the server gets a request that generates too large a data set it should respond accordingly.

We discussed , reducing the "now" component, (which is returned) so that the client needs to make repeated requests.

danaronson commented 4 years ago

Sure, I suggest that there are two ways to determine too large.

  1. The client sends a max count as a parameter

  2. The server gets to pick how many if it wants

In addition, the server should probably send back in the json an indication that there may be more results.

mitra42 commented 4 years ago

We did this a week or so ago