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.

Filter by
Sorted by
Tagged with
0 votes
4 answers
173 views

Can the actor model replace a database?

After doing some research regarding the actor model, Im still not really sure what an actor actually is.. and what its supposed to "replace". From what I have understood an actor is supposed ...
user avatar
  • 193
2 votes
2 answers
63 views

Actors and their representation in the system

I am trying to understand the relationship between actors and their representation in the system. Please see the below figure In the figure on left, I have an abstract representation of my system. In ...
user avatar
0 votes
1 answer
122 views

Bank actors in Use case diagrams

In a use-case diagram, use cases (bubbles) provide a functionality to an actor. For example, ecommerce site, actor "shopper" could use bubble "browse catalog" or "make payment&...
user avatar
1 vote
1 answer
1k views

Use case diagram (secondary actors)

I have a problem statement that describes an online E-commerce system: An E-commerce software system is going to be developed. This system allows customers to browse the store catalog, pick the items,...
user avatar
1 vote
1 answer
582 views

Is it overkill to use event sourced actor model with message queue which send commands from gateway?

The gateway uses Rabbitmq with Masstreansit to send commands to services. Some of services require event sourcing in their internal architecture. Since I need my aggregate states available, and the ...
user avatar
  • 209
0 votes
0 answers
32 views

Turn based access to update shared resource such as inventory

I am trying to design a system where a Product can only be sold while inventory is available. This is an e-commerce platform where users can buy specific products with designated inventory. A similar ...
user avatar
0 votes
0 answers
130 views

Does Akka support communication with external threads

I have been developing with Orleans actor implementation. Recently, I saw that we were scheduling a long running job on an actor, which was effectively blocking the actor since it couldn't process the ...
user avatar
  • 101
1 vote
1 answer
2k 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 ...
user avatar
  • 29
4 votes
1 answer
180 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 ...
user avatar
  • 49
4 votes
1 answer
123 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 ...
user avatar
  • 171
-1 votes
1 answer
447 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 ...
user avatar
0 votes
1 answer
410 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://...
user avatar
  • 101
1 vote
1 answer
172 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 ...
user avatar
  • 351
1 vote
1 answer
594 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 ...
user avatar
  • 217
4 votes
3 answers
234 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 ...
user avatar
  • 149
1 vote
3 answers
1k 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 ...
user avatar
  • 1
0 votes
1 answer
143 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 { ...
user avatar
  • 377
0 votes
1 answer
231 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, ...
user avatar
  • 377
6 votes
2 answers
4k 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 ...
user avatar
2 votes
2 answers
733 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-...
user avatar
  • 2,225
2 votes
1 answer
157 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 ...
user avatar
27 votes
4 answers
9k 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 ...
user avatar
3 votes
1 answer
230 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 ...
user avatar
  • 731
3 votes
1 answer
316 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, ...
user avatar
  • 661
0 votes
1 answer
564 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 ...
user avatar
6 votes
2 answers
3k 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 ...
user avatar
  • 81
9 votes
2 answers
6k 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 ...
user avatar
  • 405
5 votes
1 answer
662 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 ...
user avatar
24 votes
1 answer
6k 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 ...
user avatar
  • 4,769
3 votes
2 answers
9k 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 ...
user avatar
0 votes
1 answer
149 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 ...
user avatar
  • 225
12 votes
3 answers
5k 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 ...
user avatar
  • 4,769
16 votes
1 answer
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 ...
user avatar
  • 4,769
2 votes
1 answer
209 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 ...
user avatar
  • 123
6 votes
1 answer
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 ...
user avatar
4 votes
1 answer
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 ...
user avatar
  • 195
4 votes
2 answers
802 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 ...
user avatar
  • 5,305
5 votes
3 answers
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 ...
user avatar
  • 19.1k
4 votes
3 answers
424 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. ...
user avatar
  • 155
7 votes
3 answers
858 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 ...
user avatar
  • 1,690
10 votes
3 answers
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 ...
user avatar
  • 4,827
13 votes
2 answers
3k 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. ...
user avatar
  • 415
19 votes
3 answers
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 ...
user avatar
  • 299
6 votes
2 answers
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. ...
user avatar
8 votes
2 answers
2k 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 ...
user avatar
  • 1,689
18 votes
3 answers
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?
user avatar
  • 14.8k