What is the difference between Actor Model and Reactor Model in Python?

https://en.wikipedia.org/wiki/Actor_model , the project is called pulsar "

https://en.wikipedia.org/wiki/Reactor_pattern , Twisted and Tornado projects

What is the difference in theory and practice?

+8
python twisted concurrency reactor actor-model
source share
2 answers

Twisted, a tornado, and a pulsar use an event loop (called a twisted state reactor) to wait for events in file descriptors. In this regard, they are similar libraries and therefore can interact with each other.

The pulsar actor model refers to the parallel side of an asynchronous structure. Here the pulsar is different from twisting, for example. In a pulsar, each actor (thinking of a specialized thread or process) has its own cycle of events. Thus, any actor can run his own asynchronous server, for example.

Read more about the implementation of an actor in a pulsar here

http://quantmind.imtqy.com/pulsar/design.html

+4
source share

There is no difference. The "actor model" is somewhat more ambiguous, but both terms are fairly general that they can be applied to a large number of different software with different characteristics outside their base model.

+1
source share

All Articles