Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [actor-model]

An actor model is composed of actors, which are entities that can both send and receive messages, queue messages, create more actors, serve as a proxy for other actors, and designate another actor as its replacement.

0
votes
0answers
35 views

Actor Model In Java Using CompletableFuture and Executors

I am planning to implement an Event Driven system, based on the Actor model using CompletableFutures and individual Thread Pools for each actor. However my tasks are completely sequential in nature ...
1
vote
2answers
179 views

UML - Identifying use cases and actors

I'm currently learning object-oriented programming and we have moved on to UML. We are learning about use cases and actors currently and we need to create a list of actors and use cases initiated by ...
3
votes
1answer
103 views

Is the actor model suited for an application dealing with elapsed time?

I need to create a distributed application with timers / periodically checking two timestamps for elapsed time. Is it possible to achieve following behaviour with the actor model: Spawn Child actor ...
4
votes
1answer
109 views

Actor Model is it ideal for Controlling Concurrency

so I am thinking of using the actor model to solve a problem I currently have. For brevity, I have made up a scenario so we don't get too technical. Lets say I have 3 benches but each bench supports ...
-1
votes
1answer
339 views

How to integrate WPF and AKKA

I'm new to AKKA and i can't figure out a general proper way to integrate a backend actor system with my WPF views. I studied a few examples i found (all very similar, probably based on this), but in ...
0
votes
1answer
254 views

Storing history in an Actor Model

Being a complete noob to the actor model way of doing things, I a struggling to understand how I would store transaction history in an Actor Model. In the example from ProtoActor Persistence (https://...
1
vote
1answer
107 views

Does it make sense to have empty messages, in order to simply invoke an actor?

I'm getting familiar with an existing Akka.NET codebase and the actor model itself, and I notice a number of actors are configured to receive empty messages and do their work. class Invoke { } class ...
1
vote
1answer
387 views

How to effectively store aggregates in actor model

I'm struggling with aggregates in actor model (akka) and how to store their state. I wonder what role does repository stands for in actor model in DDD. I have a situation, where my aggregate root ...
4
votes
3answers
228 views

Consistency of diamonds in a concurrent system

I am struggling to find solutions to a problem that I encounter in a concurrent system (I am currently using the Actor Model). I basically have a diamond structure of actors: So D sends messages to C ...
1
vote
3answers
507 views

Is the Actor Model an alternative to transactions?

I know that transactions use locks. It is claimed that actors liberate us from shared state and locks make sure all crashes are the same as clean shutdowns: this can be done through practices such ...
0
votes
1answer
130 views

Celluloid actors parallel work slow?

I'm new to actors and just playing around in ruby using Celluloid. I have this code below module Enumerable # Simple parallel map using Celluloid::Futures def pmap(&block) futures = map { ...
0
votes
1answer
170 views

Implement an actor-based concurrent language in ruby?

How would one implement an actor-based concurrent language in ruby? My thought is that only the correct way of creating programs is using actors, but I'm not entirely sure on how this could be done, ...
6
votes
2answers
3k views

Akka.Net - real scenarios of usage

Now I'm trying to understand Actor model. I know main concepts like everything is an actor etc. I see a lot of words like "it's very good from performance point of view", "no locks because there is no ...
2
votes
2answers
469 views

Using actor model, how can one program concurrent portion (critical section) of code as self contained nuggets?

Von neumann architecture allows sequential processing of instructions. So, a single core within a CPU executes instructions sequentially. Consider, OS providing 1-1 threading model(here) in a multi-...
2
votes
1answer
120 views

Placing case classes

If the supervisor and its child actors are sharing the same messages, which is the right place to keep those case classes? Should it be in both Supervisor and the individual actors or should it be in ...
23
votes
4answers
5k views

What is the difference between Actor model and Microservices?

Both seem like parallel MPI communicating network of processes. I identify actors with services. Are actors more dynamic (you can create them and kill as breathing whereas service network is more ...
3
votes
1answer
201 views

Why the name MailboxProcessor in F#?

It seems that the standard practice is to immediately alias MailboxProcessor<'T> to Agent<'T>. So why the name in the first place anyways? Why don't they just call it Agent<'T>, if ...
3
votes
1answer
242 views

Fork-join in the actor model

I'm reading a paper about the actor model and they describe how a fork-join behaviour can be implemented using it: Let us consider how a system of actors, when requested to calculate some value, ...
0
votes
1answer
469 views

In Actor Pattern (AKKA.Net) Should actors be classes OR Objects?

Im Just getting started with actor pattern. Coming from UnitOfWork pattern. Lets say i want to create Actor Pattern for a Employee Management System to mark they are present or absent. The Problem Im ...
6
votes
2answers
2k views

Understanding the Single-Writer Principle

The article on the Single-Writer Principle of the Mechanical Sympathy blog explains how bad queues are (performance-wise), because they need to be able to receive messages from multiple produers, and ...
9
votes
2answers
4k views

Why is Akka good for concurrency?

I am new to Akka and actor framework - I am sure I am missing something obvious, please accept my apologies in advance. I keep reading that one of the main points to choose Akka is the way it manages ...
4
votes
1answer
521 views

F# MailboxProcessor aka Agent as an API

Seeing how there's raise in actor-based solutions, I'm a bit confused about the lack of F# libs that use something like the stock MailboxProcessor as the API. What's the downside? Why deal with ...
16
votes
1answer
3k views

Is Erlang really an actor model language?

I was reading this article: http://www.doc.ic.ac.uk/~nd/surprise_97/journal/vol2/pjm2/ And it mentions that: ...in the actor model even an integer is represented as an actor... Wikipedia ...
3
votes
2answers
5k views

Use Case Diagram. Can a system be its own actor?

Hello I got the definition below for an actor. That means the system cannot be an actor to itself. I was wondering what if the system is supposed to display certain elements on a screeen. In that case ...
0
votes
1answer
141 views

Actors in a sequential protocol handshake

I am new to actors and trying to implement a very sequential protocol handshake (over websockets). This is in Scala/Akka. It goes something like this: HTTPs connection is established then upgraded ...
12
votes
3answers
4k views

What is a “lifted representation”?

Just ran across this term here: http://www.codemesh.io/codemesh2014/viktor-klang "We'll demonstrate the Flow API—a lifted representation—as well as a pluggable way of transforming the lifted ...
14
votes
1answer
5k views

Why is Akka being marketed as reactive? Is Actor Model reactive?

As far as I understand the Actor Model and the Reactive Programming are separate concepts. Actor Model does not seem to be inherently reactive to me. However the Akka framework which is an Actor ...
2
votes
1answer
136 views

Message Passing: How to detect and/or handle “dead ends”

I'm playing with a mental model for distributed actor system that communicates using messages. In this, it is possible for an actor to create another actor. I've encountered one specific situation ...
6
votes
1answer
1k views

Which parallel pattern to use?

I need to write a server application that fetches mails from different mail servers/mailboxes and then needs to process/analyze these mails. Traditionally, I would do this multi-threaded, launching a ...
4
votes
1answer
2k views

Using akka actors with service spring beans

Do you think that using akka actors in front of transactional service beans, is a good idea ? Actors are waked up by a facade used by a client application, and actor use a message to handle right ...
4
votes
2answers
660 views

Error checking in actor-based paradigm

I have an existing Scala application that I am trying to refactor in order to use Akka. One of the problems I have is how to manage error-checking in actor-based applications. Usually error-checking ...
5
votes
3answers
5k views

Actor library / framework for C++ [closed]

In the C++ project I am working on, we have an application consisting of several processes deployed on different machines. This network of processes is dynamic since processes (clients or background ...
4
votes
3answers
367 views

Actor based concurrency and cancellation

I'm reading about actor based concurrency and I appreciate the simplicity of actors sequentially processing messages on a single thread. However there is one scenario that doesn't seen possible. ...
7
votes
3answers
837 views

Is the architecture of my project a common one? What's its name?

I am responsible for a software project for a few years now (a Java desktop application, which is mostly event-driven). I started it from scratch, and at the beginning of this project I made some ...
9
votes
3answers
2k views

What are the recommended resources for learning about the Actor model of concurrent systems? [closed]

The Actor concurrency model is clearly gaining favor. Is there a good book that presents the patterns and pitfalls of the model? I am thinking about something that would discuss, for instance, the ...
13
votes
2answers
2k views

Is my description of the actor model right?

If I understood, the actor model is just like the object model, but with a few differences: EVERY object spawns it's own separate thread and its not a problem even when you have thousands of objects. ...
18
votes
3answers
10k views

How is the actor model used?

I have read a bit about the actor model, but don't really understand how to use actors in a real world situation – how to model a problem with them. Can someone please explain? A simple example or ...
6
votes
2answers
2k views

Using an actor model versus a producer-consumer model?

I'm doing some early-stage research towards architecting a new software application. Concurrency and multithreading will likely play a significant part, so I've been reading up on the various topics. ...
6
votes
2answers
1k views

Is Lambda function same as Actor? How can it be explained?

Sometime back I read (from a book) that conceptually Lambda function is similar to Actor. However I am clear on the concept, and will appreciate any insight or explanations for this. If they are ...
18
votes
3answers
2k views

What are your thoughts about the Actor Model? [closed]

The Actor Model which is used by Erlang seems to be a very different way to do concurrent programming. What are your thoughts about the Actor Model? Will it be a popular solution for concurrency?