https://github.com/itsnainaverma/actor-based-model-in-concurrent-and-distributed-systems
Implementation of the Actor Based Model in Concurrent and Distributed systems using Python Thespian Library
https://github.com/itsnainaverma/actor-based-model-in-concurrent-and-distributed-systems
Last synced: 3 months ago
JSON representation
Implementation of the Actor Based Model in Concurrent and Distributed systems using Python Thespian Library
- Host: GitHub
- URL: https://github.com/itsnainaverma/actor-based-model-in-concurrent-and-distributed-systems
- Owner: itsNainaVerma
- Created: 2020-07-04T14:16:15.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-04T15:18:36.000Z (almost 5 years ago)
- Last Synced: 2025-02-24T19:37:09.100Z (3 months ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Actor-Based-Model-in-Concurrent-and-Distributed-systems
Implementation of the Actor Based Model in Concurrent and Distributed systems using Python Thespian LibraryThe actor model is used in concurrent computing in which the actor is considered as the primitive for concurrent computing. The actor is considered as an example of combining distribution and multithreading. It can perform a wide range of functions such as transmit a limited no. of messages to similar actors, create a more limited number of similar actors, specify actions for incoming messages.
Actor model implementation follows the following steps - First, using a configuration file to specify the host process on which the actors will execute as well as the port that can be used to receive the messages. Secondly, to provide the ability to create actors in remote processes. Third, provide logical names to identify remote actors. And finally serializing the messages transmitted among actors.In this project, I have created an actor that responds to the request by creating/generating the other actors dynamically. Actors are the independent of process, they do not copy the data instead they directly send data to the other process.
#### The actor does the following things:
a) Changes the internal state.b) Create other actors.
c) Communicate with other actors using the addresses of other targeted actors by described protocols.
d) The life cycle of Actor in existing system.
e) Actor is created by using the function createActor(), address is assigned by the actorSystem.
f) The actor is called by using function ask().
g) Actorsystem.ask() calls another actor.
h) Actor passes the message to the other targeted actor using function tell.