Akka as a concurrency model for Clojure

It seems that there are a lot of cool things around Akka (I do not really understand the framework, I hope to figure it out soon).
Is it recommended to use Akka in Clojure? does it make sense to use Akka as a concurrency model in Clojure projects and abandon the built-in tools?

+4
source share
3 answers

Clojure has a lot of built-in support for working with concurrency. There is no need to bring an actor to the library unless you really need actors. Your question does not detail the architecture or design of your system, so I canโ€™t talk about whether you need actors for your project, but of course I wouldnโ€™t jump right into it. First, take a look at Clojure agents and other concurrency primitives. They should suit your needs pretty well.

As for Akka (or any actor library) as a concurrency model for Clojure, this is not how the language was developed. You can use the actors library for your application, but this is not the approach that Clojure adopted.

+11
source

It depends on whether your project uses built-in tools. It also depends on whether your company / project approves the idea in the first place, whether the library accepts licensing terms, and whether your group is ready to support the community or pay for commercial support.

Cm:

In addition, this will be given to the preferences of the developers of your project, the support of the code you write, to standard tools, the level of support for the library, the adoption of the library as part of the Clojure community software development, etc.

My advice is to evaluate it and make comparative prototypes of an evidence-based concept with all the technologies you are considering.

Such advice is applicable when adding any third-party code to the project.

Recognizing someone else blindly can cost you a lot of time, effort, money and support from other developers.

+4
source

Pulsar projects bring Lightweight, CSP and Erlang-like streams for Clojure.

+1
source

Source: https://habr.com/ru/post/1345178/


All Articles