List/Grid Tag Archives: Akka

WatchService combined with Akka actors
WatchService is a handy class that can notify you about any file system changes (create/update/delete of file) in a given set of directories. It is described nicely in the official ...

Futures in Akka with Scala
Akka is actor based, event-driven framework for building highly concurrent, reliable applications. Shouldn’t come a surprise that concept of a future is ubiquitous in a system ...

Software Transactional Memory (STM)
The Actor Model is based on the premise of small independent processes working in isolation and where the state can be updated only via message passing. The actors hold the state within ...

Adding Turbochargers to JEE Apps
One of the key roles, I play is evangelizing Akka within my local community. As part of the discussions, the question/doubt usually in people’s mind is how can Akka provide better ...

Non-blocking I/O – discovering Akka
Here comes the time to follow some good practices when implementing actors. One of the most important rules we should follow is avoiding any blocking input/output operations, polling, ...

Two actors – discovering Akka
Hope you are having fun so far, but our application has serious performance defect. After measuring response times of the RandomOrgRandom class we developed in the previous part we ...

Remote actors – discovering Akka
Assume our test application became a huge success and slowly a single server is not capable of handling growing traffic. We are faced with two choices: replacing our server with a better ...

become/unbecome – discovering Akka
Sometimes our actor needs to react differently based on its internal state. Typically receiving some specific message causes the state transition which, in turns, changes the way subsequent ...

Request and response – discovering Akka
In the previous part we implemented our first actor and sent message to it. Unfortunately actor was incapable of returning any result of processing this message, which rendered him ...

Your first message – discovering Akka
Akka is a platform (framework?) inspired by Erlang, promising easier development of scalable, multi-threaded and safe applications. While in most of the popular languages concurrency ...

