Design cluster listeners
Discuss the API of different listeners
- members
- metadata
- convergence?
Drawbacks with callbacks (threads).
Perhaps publish to event bus.
- members
- metadata
- convergence?
Drawbacks with callbacks (threads).
Perhaps publish to event bus.
Leave a comment
on 2012-06-08 02:46 *
By Jonas Bonér
I like events to EventBus a lot better. More Akka-style.
But then it would be nice if we could detect the actual diff ourselves so we can push out events like: Joined(x), Leaving(y), NewLeader(l) etc. WDYT?
Or should we stick to just two events: NodeRingChange(sortetSet) and MetaDataChange(..) - but with better names of course?
But then it would be nice if we could detect the actual diff ourselves so we can push out events like: Joined(x), Leaving(y), NewLeader(l) etc. WDYT?
Or should we stick to just two events: NodeRingChange(sortetSet) and MetaDataChange(..) - but with better names of course?
on 2012-07-05 07:48 *
By Patrik Nordwall
I think your suggestion is great. We should publish Domain Events. Publish to registered actors or event bus.
I think we can use it internally also. The Cluster extension API becomes the read side of a mini CQRS design.
I think we can use it internally also. The Cluster extension API becomes the read side of a mini CQRS design.
on 2012-07-05 08:14 *
By Jonas Bonér
Sounds great. Let's do it.
I think we should do it over the event bus (and remove the public add listener API and not allow adding actor listeners either). One way of doing things.
I think we should do it over the event bus (and remove the public add listener API and not allow adding actor listeners either). One way of doing things.
on 2012-08-13 07:16 *
By Patrik Nordwall
Assigned to set to Patrik Nordwall
Status changed from New to Accepted
Most of this is done, but I'll also take a stab at publishing more fine grained events (the change only).
Updating tickets (#620, #679, #725, #750, #752, #753, #754, #763, #789, #870, #893, #922, #953, #954, #971, #977, #983, #985, #987, #991, #1026, #1045, #1051, #1060, #1061, #1084, #1098, #1099, #1133, #1134, #1135, #1136, #1137, #1194, #1225, #1226, #1243, #1245, #1247, #1248, #1254, #1261, #1300, #1317, #1391, #1412, #1791, #1793, #1901, #1908, #1911, #1912, #1913, #1914, #1915, #1916, #1917, #1922, #1983, #1987, #1996, #1997, #1998, #2066, #2077, #2105, #2117, #2133, #2143, #2149, #2151, #2152, #2153, #2155, #2157, #2158, #2159, #2160, #2161, #2162, #2163, #2164, #2165, #2167, #2171, #2175, #2176, #2177, #2180, #2182, #2184, #2185, #2193, #2199, #2202, #2204, #2206, #2207, #2209, #2210)