roc230 / spymemcached

Automatically exported from code.google.com/p/spymemcached
0 stars 0 forks source link

Can I add new server without restart clients ? #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've tested basic features with spy memcached 2.1.

I want to know whether it is possible or not.

Suppose the following scenario

1. I start to service with 2 machines(servlet engine and memcached runs on
each machine).
2. I decide to add more servers.

In my short understanding, I have to change client's server list and
restart clients.
It means I have to stop service.

Is there any solutions without stopping service ?

Original issue reported on code.google.com by msbae...@gmail.com on 28 Jun 2008 at 2:27

GoogleCodeExporter commented 9 years ago
I wouldn't consider this a defect.  It's a matter of how you access the class.

If you access the class through a service locator, that class can swap out the
running client without affecting your application.

Such a service is not provided, but if I were to implement something like this, 
I'm
pretty sure that's how I'd do it.

Original comment by dsalli...@gmail.com on 26 Sep 2008 at 2:43

GoogleCodeExporter commented 9 years ago
I wouldn't consider this a defect.  It's a matter of how you access the class.

If you access the class through a service locator, that class can swap out the
running client without affecting your application.

Such a service is not provided, but if I were to implement something like this, 
I'm
pretty sure that's how I'd do it.

Original comment by dsalli...@gmail.com on 26 Sep 2008 at 2:44