On my journey to grasp the Actor model using Akka many questions pop up. Here is another one. Say we have an Actor which has to stop processing messages for a given time because of some business logic or available resources. Cases where this might occur could be:

  • Throttling. There might be an Actor which sends e-mails but is restricted to sent only one e-mail per second.

  • The Actor might employ some system which can only process x-messages simultaneity. This could be an AsyncHttpClient which has a fixed thread pool and I do not want to overload it.

  • Some external resource is unavailable which is required to process messages (read: external REST-API)

It is highly possible that my brain is not yet actor-ready and I just need a hint how to tackle such problems in an actor-y way.

Edit
Report