DELAPARRA
Index
Color
NL
Category: Programming paradigms

Message Passing

Explained by Updated

What is Message Passing?

Message Passing: Actors communicate exclusively by sending immutable messages, never by direct method calls or shared memory. Message passing means parts of a system communicate by sending messages instead of calling each other's methods or sharing memory. The sender puts a message in the receiver's mailbox and moves on. In the actor model, messages are immutable, so once sent, nobody can change them. Each actor only sees its own state, which removes most concurrency bugs by design.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Message Passing

What should you keep in mind with Message Passing?

The same idea scales up to whole systems. Services sending messages through a queue or event bus are loosely coupled: the sender does not wait, and the receiver can be down for a moment without losing the message. The trade-off is that you need to think about delivery: what happens if a message arrives twice, arrives late, or never arrives. Idempotent handlers and clear retry rules answer those questions.

At a glance

CategoryProgramming paradigms
Explained by
Updated

More Programming paradigms terms

All terms starting with M

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.