Reputation: 642
I want to write a multi threaded (accepting asynchronous requests, meaning it will create a new thread to process each request) and persistent (meaning, it is long lived, stateful, and will keep running) in Akka (Scala). Is this possible?
Upvotes: 1
Views: 70
Reputation: 12565
Sure. You can use any database as persistence layer (preferably one that has an asynchronous driver), or you can use akka-persistence as persistence layer (there are persistence backends for e.g. mongodb, cassandra, kafka, ...)
Here is a really nice demo app that shows a lot of concepts related to akka. It is a simple chat with an angular.js frontend and a lot of current technologies in the backend.
To get started, write some simple prototype, first with just akka http and akka actors, and then slowly add new things (sharding, persistence, ...)
Upvotes: 2
Reputation: 2235
I do not see any reason why you shouldn't be able do this with Akka. In Akka you do not manage threads manually, this is just one benefit of the framework.
Just create a protoype.
Upvotes: 0