Enabling Akka applications for remoting
Before you enable your application to use remoting, review the different transport protocols that you can use to communicate:
akka.tcp
: This is a remoting protocol that uses TCP as the network protocol backed by the Netty framework.akka
: This is an experimental UDP-based remoting protocol that uses Aeron as the network protocol.
Note
You can learn more about Aeron at https://github.com/real-logic/Aeron.
We will use akka.tcp
 as it is the more stable remoting protocol currently. However, Akka plans to deprecate it in favor of akka
once this new remoting layer becomes more mature.
Getting ready
To step through this recipe, we need to import the Hello-Akka
project; all other prerequisites are the same as before. We need to bring the required dependencies for remoting this time.
How to do it...
For this recipe, perform the following steps:
- Let's start getting the required dependencies. Edit the
build.sbt
file and add Akka's remote dependency, as follows:
...