akka/akka-core

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

Open

#29,920 opened on Dec 22, 2020

View on GitHub
 (0 comments) (1 reaction) (0 assignees)Scala (3,547 forks)batch import
1 - triagedhelp wantedt:docst:typed

Repository metrics

Stars
 (13,277 stars)
PR merge metrics
 (Avg merge 8d 19h) (10 merged PRs in 30d)

Description

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

Contributor guide