Hi there,
Use case:
Maybe today I have large amount of requests, and I want to add some peers.
groupcache provides a convenient way to set peers. (that is func (p *HTTPPool) Set(peers ...string))
But I'm wondering: What is the best way to notify the running groupcache's instances that there is a new peer?
Which means I want to be able to dynamic add/remove groupcache's peers.
The solutions come into my mind:
1. create a http api interface. when I run up a new groupcache instance, I send request to the http api. And as soon as the api receive request, it use Set(peers...) to add peers.
Is there any better solution?
Thanks!