Credid / rfc

Request for comments for the Credid-server
https://credid.sceptique.eu/
0 stars 0 forks source link

Scalability issue #1

Open Nephos opened 6 years ago

Nephos commented 6 years ago

Big responses to queries

EX: USER LIST etc. might return a massive amount of data (ex: average 9 chars by user, 10.000.000 users > 10 Mo of text.

Maybe too much for a single request (memory allocation, parsing, ...).

Add Query options could be great:

Ex:

USER LIST COUNT=10 PAGE=2

would return 10 users from the 2*10+1=21th

Nephos commented 6 years ago

https://github.com/AuthCr/auth-server/commit/23d19bfc459ecd88681a5c0200b95be955426234 added the OPTIONS, so we can paginate data. The RFC of the OPTIONS should be updated first...

Nephos commented 6 years ago

RFC is up-to-date, server also implement the options. The C api should implement it in a few days