score:1

Accepted answer

there isn't a single solution for that. what you should do is to start experimenting and see how your application behaves under normal usage. define a size for the queue, start working on it, measuring latency, contention and errors. eventually you will find a good number to your app.

one thing i've heard once from a netflix guy is that queues will always be clogged and they won't move anywhere. so you must also decide when it's time to give up trying and and just fail.


Related Query

More Query from same tag