On Feb 25, 7:21 am, mariyan nenchev <[email protected]> wrote:
> What will happen if i create 5000 threads(5000 users update simultaniosly)
> to update the cache just once at the same time?

  Unless your box has 5,000 cores, your application is going to fall
apart in all kinds of other exciting ways here.  It's certainly not
going to happen all at the same time anyway.

  You're far better off running that work an ExecutorService.

  But in general, spymemcached doesn't care how many threads you're
using.  There are only practical limitations (e.g. you don't have
5,000 cores so you have a lot of threads waiting for a CPU to become
available for each app thread, spymemcached thread, memcached thread,
etc...) and small contention points while enqueuing commands.

Reply via email to