In Akka, ask is a pattern and involves Actors as well as Futures. Ask is used to sends a message asynchronously and it returns a Future which represents a possible reply. If the actor does not reply and complete the future, it will expire after the timeout period. After the timeout period, it throws a TimeoutException. By Purva Agrawal.
This is short and straight to the point article reading about:
- Communication among Actors
- What is Ask pattern?
- Using the Ask pattern
- Combining Ask and PipeTo patterns
- Ask pattern: Do’s and Don’ts
In Akka, actors communicate with each other by sending and receiving messages. The messages can be sent in many patterns like: Fire and Forget, Request and Response. Good read!
[Read More]