akka/akka-core

[Docs] Add Scatter Gather First Completed pattern under Interaction Patterns

Aperta

#29.920 aperta il 22 dic 2020

 (0 commenti) (1 reazione) (0 assegnatari)Scala (3547 fork)batch import
1 - triagedhelp wantedt:docst:typed

Metriche repository

Star
 (13.277 stelle)
Metriche merge PR
 (Merge medio 8g 19h) (10 PR mergiate in 30 g)

Descrizione

Add some explanation and example code on how to achieve Scatter Gather First Completed under https://doc.akka.io/docs/akka/current/typed/interaction-patterns.html

Scatter Gather First Completed delivers a message to multiple actors, waits for the first reply, and then sends it to the original requestor. Other replies are ignored. See also: https://doc.akka.io/docs/akka/current/routing.html#scattergatherfirstcompletedpool-and-scattergatherfirstcompletedgroup

Guida contributor