Skip to content

cosmicboy79/PekkoExample

Repository files navigation

PekkoExample

Sample application using Apache Pekko in Java. It basically is the Akka sample application I created in my project AkkaExample but now using Apache Pekko.

I used Apache Pekko Tutorial to guide me in the implementation of this sample. My intention is to use this repository as a "coding laboratory" to learn a bit more about this framework in the near future.

This sample application's main entry point is class TransactionsProcessor. The data to be processed is provided via class TransactionProvider and sent to the Actor System, as follows:

  1. TransactionsActor - Actor that receives a list of transactions to be processed. Based on the customer associated to each transaction, it will either find or create a related child Actor (see next point).
  2. CustomerActor - child Actor (see previous point) that process the transaction for a customer.

This project can be built with either Maven or Gradle, and it was developed with Java 21. In both cases, JAR file sample-pekko-app-all-<version>.jar is built, which can be used to run the application in the command line, as per following example:

cd <location of JAR file>
java -jar sample-pekko-app-all-1.0-SNAPSHOT.jar

In any case, I recommend to simply import this project and run it in the preferred IDE.

About

Actor Model Sample App on Java using Apache Pekko

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages