In this section, we will develop a simple Akka Persistence Weather Application to explore the CQRS/ES pattern. We will use MongoDB as our application Akka Persistence journal to store our events.
Use the following steps to experiment with Akka Persistence with MongoDB:
- Create an SBT Scala project from your favorite IDE:
Project name: akka-persistence-mongodb-weather-ap
- Update build.sbt with the following content:
build.sbt:
name := "akka-persistence-mongodb-weather-app"
version := "1.0.0"
scalaVersion := "2.12.4"
libraryDependencies ++= {
Seq(
"com.typesafe.akka" %% "akka-actor" % "2.5.9",
"com.typesafe.akka" %% "akka-persistence" % "2.5.9",
"com.typesafe.akka" %% "akka...