Reactive System's best practices and tools
In this section, we will briefly discuss a couple of useful best practices and tools we need to consider in designing and developing Reactive Systems.
Tools
Use Akka Toolkit, Play Framework, and/or Lagom Framework to develop your Reactive Systems (Reactive Microservices or Reactive Web Applications) because they are Reactive by design.
Akka Toolkit supports Reactive Design Patterns by design. Play Framework is developed using Akka Toolkit under the hood. In the same way, Lagom Framework is developed by using Akka Toolkit and Play Framework under the hood.
Akka Toolkit supports the Akka Streams API (which implements Reactive Streams), for data streaming.
Useful best practices
Don't create the Props
object each and every time we create an Actor
object. It's good to provide the Props
object in that Actor's companion object, as shown here:
Example-1:
class WFActor extends Actor {
// receive function implementation
}
object WFActor {
defwfProps...