Prototypes an akka persistence project including google protocol buffers (protobuf)
Project is written in scala. Used akka persistence toolkit.
SBT and prepared postgres-server required
- Prepare your PostgreSQL-server (or use different journal and snapshot plugin)
- See config located in
./src/main/resources/application.conf
and opt. change PostgreSQL-server config (or use different journal and snapshot plugin) - Run project with
sbt run
- Akka Persistence: Event sourcing
- Google Protocol Buffers (protobuf): Serializer (scalaPB - sbt plugin - used)
./src/main/protobuf/GarageAggregate.proto
: Protobuf definition./src/main/scala/de/mb/akka/protobufexample/utils/ProtobufSerializer.scala
: Serializer definition./src/main/resources/application.conf
: Serializer binding
- Protobuf compiler (scalaPB) compiles scala-classes from
*.proto
-files - Project compiles
There are many possibilities to run journal and snapshot-storage. In this project is included:
You can extend this project with any other journal and snapshot-storage extension(s)