akka/akka-core

"Collapsing" router or contrib pattern

Offen

#16.323 geöffnet am 18.11.2014

 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Scala (3.547 Forks)batch import
1 - triagedhelp wantedt:core

Repository-Metriken

Stars
 (13.277 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 8T 19h) (10 gemergte PRs in 30 T)

Beschreibung

This is a nice pattern we could implement as either a router or example. Tomek Nurkiewicz recently blogged about how Hystrix has this built in here: http://www.nurkiewicz.com/2014/11/batching-collapsing-requests-in-hystrix.html

The pattern is about lessening the number of requests sent to an "expensive to call" resource by "collapsing" multiple calls within some time into one message to that expensive resource and then responding back to all interested parties. We can easily implement something like this, so I figured it would be a nice task to pick up if someone wants to contribute a "specialised single destination collapsing Router" like this :-)

Hystrix docs: https://github.com/Netflix/Hystrix/wiki/How-To-Use#Collapsing

Contributor Guide