multithreading - Can Akka (Scala) be used to create asynchronous persistent server? -
i want write multi threaded (accepting asynchronous requests, meaning create new thread process each request) , persistent (meaning, long lived, stateful, , keep running) in akka (scala). possible?
sure. can use database persistence layer (preferably 1 has asynchronous driver), or can use akka-persistence persistence layer (there persistence backends e.g. mongodb, cassandra, kafka, ...)
here nice demo app shows lot of concepts related akka. simple chat angular.js frontend , lot of current technologies in backend.
to started, write simple prototype, first akka http , akka actors, , add new things (sharding, persistence, ...)
Comments
Post a Comment