Questions tagged [message-passing]

29 questions
29
votes
6 answers

Merits of a "Message Passing" system vs. an "Event Based" system

My question is coming from an somewhat uneducated perspective. What are the relative merits of a "message passing" system vs an "event based" system. Why would one choose one over the other? What are their strengths and weaknesses? I would like to…
sylvanaar
  • 2,295
  • 1
  • 19
  • 26
16
votes
1 answer

Alan Kay: "The Big Idea is Messaging"

Alan Kay said "OO" was about messaging, not objects and drew a parallel to biological cells. His views are enticing, but vague. The way I understand it is something like a Cellular Automata. In a Cellular Automata there's a grid of cells that can…
14
votes
3 answers

Entity-Component-System architecture: interaction between systems

I am studying the Entity-Component-System architecture philosophy. As I have read about it, a typical entity system has: 1) Entities - which are merely ID tags which have a number of components 2) Components - which contain data on various aspects…
8
votes
1 answer

Can message passing be used for a CPU redundancy and load-balancing construct

In bare metal or minimal RTOS type embedded systems with multiple processors is it possible to have an identical program running on each processor that uses Message Passing Interface (MPI) to provide load balancing and also redundancy in the case of…
6
votes
1 answer

how to decide when to use database replication vs. custom REST applications vs. message brokers (pub / sub)

We have a distributed solution that's currently under design. There are a few points of integration where some application needs data from someone else and vice versa. We could solve by either writing REST interfaces and provide CRUD features so…
6
votes
4 answers

Design pattern for bidirectional signals/events

This problem feels rather basic, yet I've never known a great solution. I'm looking for a way for components in an application to notify each other while being as decoupled as possible (both at build/compile and run time), but also avoiding circular…
5
votes
2 answers

How to think in Object Oriented way when it comes to passing messages?

Somewhere I have read that "Object Oriented" is a misnomer and that OO should really stand for "message-oriented programming". What I am not clear about is ... what does it mean? For example in procedural style you could do : /* * Assume that…
Dennis
  • 8,157
  • 5
  • 36
  • 68
4
votes
1 answer

Should we be using pub/sub in our messaging stack?

Basically this question is of the variety "Can I check that we're not about to do something dumb?" We're setting up a new system that needs to guarantee delivery of emails. We have an existing system that processes financial transactions and we want…
ChrisJ
  • 289
  • 2
  • 9
3
votes
1 answer

How to organize exchanges of non critical messages between servers in multiple data centers by using Kafka (or other solution)?

We need to organize a way to exchange messages between servers in multiple data centers. Messages are not critical. We just need to be able to send messages from any servers in any data centers to any other servers in any data centers. We are…
3
votes
1 answer

What are good conventions/standards for application messaging through stdin and stdout?

I'm designing and application that spawns another processes to handle some specialized work. The application and the process it spawns will communicate through standard input and standard output (and standard error too). I've been given this same…
Rico Kahler
  • 240
  • 2
  • 10
3
votes
1 answer

UI message passing programming paradigm

I recently (about two months ago) read an article that explained some user interface paradigm that I can't remember the name of and I also can't find the article anymore. The paradigm allows for decoupling the user interface and backend through…
2
votes
1 answer

How could I programmatically generate a chart of interservice messaging flows before runtime?

My team is currently developing an application using a microservice architecture with publish/subscribe interservice communication over a message bus. Certain types of HTTP requests and messages received as inputs to a service might cause that…
2
votes
3 answers

How to replace parallel async calls between micro services with event based communication

A service A needs to access services B, C and D to process a request. Currently this is implemented as parallel async calls from A to B, C and D. Once all of them has responded, service A follows some business logic to create a final result from…
Raiyan
  • 131
  • 5
2
votes
1 answer

What to choose, ioctl-like interface or a set of distinct methods?

I am implementing a messaging protocol between nodes on a network and i am wondering how to expose the messaging system interface to the programmers. The messaging protocol supports a set of commands that the clients and servers can exchange to get…
2
votes
2 answers

How is MPI related to "message passing"?

How, if at all, is Message Passing Interface (MPI) related to the general concept of "message passing"? Admittedly, the question does sound ridiculous. Surely, "Message Passing Interface" is an interface for message passing, right? Nonetheless,…
Praxeolitic
  • 1,604
  • 3
  • 15
  • 24
1
2