How it works...
In this recipe, we covered how to configure our application to use LevelDB as our Akka persistence journal plugin. For that, we need to bring in the required dependencies and configure the akka.persistence.journal.plugin property inside reference.conf. This ensures that all your persistent actors will be using LevelDB as the storage plugin. Since LevelDB uses the local filesystem to store the events, we need to provide an explicit location in the akka.persistence.journal.leveldb property. In our case, when we run our actors, we will see some binary files under target/sample/journal, which LevelDB uses to handle and store all events. The native property can be set to true for using Native LevelDB (via JNI) or to false for using ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access