Skip to content

dsorchard/gossipcache

Repository files navigation

Group Cache + Gossip Protocol

🚫 This project is only for learning purposes. Not meant for production usage.

This is a simple modification of group cache to support gossip protocol.

Reference

NOTES

  • Key <-> Vnode mapping strategies.
    • Here we partition keys based on consistent hashing. so key <-> vnode mapping is automatic.
    • We could also keep a mapping of key <-> vnode and use that to find the node for a given key. For this you need propagate the mapping info in gossip protocol. This is implemented in MatrixOrigin.
  • We use a global map variable to connect HttpPool and GroupCache (map[groupName]*Group).
  • I don't think we do any kind of redistribution of data since it is a cache.
  • I liked the idea of peer-picker, sink

Releases

No releases published

Packages

No packages published

Languages