7 Configuration

 

This chapter covers

  • Using the basics of the configuration library
  • Configuring multiple systems
  • Configuring your tests

Thus far, we’ve focused on creating actors and working with the ActorSystem. To create an application that can be run and is ready for deployment, you need to bundle several other things with it. First this chapter dives into how Akka supports configuration. Then we look at logging, including how you can use your own logging framework. Finally, we go through a deployment example.

Note

The source code for this chapter is available at www.manning.com/books/akka-in-action-second-edition or https://github.com/franciscolo pezsancho/akka-topics/tree/main/chapter07. You can find the contents of any snippet or listing in the .scala file with the same name as the class, object, or trait.

7.1 Trying out Akka configuration

7.1.1 Order

7.1.2 Subtrees

7.1.3 Substitutions

7.1.4 Using defaults

7.2 Akka configuration

7.3 Multiple systems

7.3.1 Lifting with Fallback

7.4 Configuration in tests

7.4.1 Lifting in tests

Summary