mailgun / groupcache

Clone of golang/groupcache with TTL and Item Removal support
Apache License 2.0
484 stars 72 forks source link

Support to Attach to Already Running Server #26

Closed bkannadassan closed 3 years ago

bkannadassan commented 3 years ago

Hi,

There is already a http server running on a port xxxxx. Is it possible to attach groupcache to the same ?. I see that its sending a request "http://_groupcache//". Should we handle this and call the groupcache get in each node ?. I hope this wouldn't go in a loop. Any help on the same is much appreciated..

rgds Baljai Kamal Kannadassan

thrawn01 commented 3 years ago

Group cache already can dynamically add or remove peers via the pool.Set() call. It's up to you to hook into a service discovery mechanism to know when other instances of groupcache need to join the consistent hash ring.