A system with thirty services calling each other directly turns into a web of promises. Every caller needs every callee up, fast, and unchanged. When one service slows down, its callers slow down too, and their callers inherit the lag. Availability becomes a property of the worst link in the chain, and every new feature adds another link.
The trending query nats-io/nats-server sits on GitHub Trending (Go) in late November 2026, with the repository documenting the whole design. The durable idea under the spotlight is decoupling through events: services stop dialing each other and start posting notices to a shared subject, which changes what failure costs and what growth feels like.
How publish-subscribe changes the wiring
Publish-subscribe inverts the direction of knowledge. A service publishes an event to a subject, say orders.created, and walks away. It holds no list of who cares. Subscribers declare interest in that subject and receive copies, and new subscribers can appear without the publisher ever finding out. The dependency on consumers disappears from the producer's code entirely.
Compare that with a direct call. A direct call couples the caller's availability to the callee's, the caller's release schedule to the callee's interface, and the caller's latency to the callee's slowest path. An event topic severs the availability coupling. One side can fail, restart, or lag while the other keeps publishing, and nothing blocks on anything else.
Delivery semantics are the real design work
Once messages travel through a broker, someone has to decide what happens when a subscriber is down or slow. Message buses offer delivery semantics: at-most-once, which may drop messages under failure; at-least-once, which may deliver duplicates; and exactly-once patterns, which cost more coordination to run. The choice shapes your code. A payment event delivered twice needs idempotent handling, and a metrics event lost occasionally needs nobody to care.
Persistence options sit next to that decision. Some subjects live only in memory and vanish with the process, which suits transient signals. Others are written to disk so a subscriber that restarts tomorrow can catch up on what it missed. Deciding which subjects deserve durability is where most of the design effort goes, and the right answer differs from subject to subject inside one system.
| Semantics | Under failure | Demands from your code |
|---|---|---|
| At-most-once | Messages can be lost | Nothing; gaps must be tolerable |
| At-least-once | Messages can repeat | Idempotent handlers |
| Exactly-once patterns | Neither lost nor repeated | More broker coordination, higher cost |
Drop in your PDF - it doesn't leave your device.
Every miss becomes a red node on your map.
Free plan: 21 nodes, no card, no countdown.
Why a small bus wins at the edge
NATS is known for a tiny footprint and low latency, and that combination explains where it turns up. A router, a factory sensor, or a vehicle computer has little memory and no room for a heavyweight broker, so a small, fast binary is the difference between feasible and impractical. The same properties serve cloud backends, which is why one system can span the edge and the data center with a single pattern.
The lesson is that coupling is a cost you pay every day, and an event topic is infrastructure that lowers it. Direct calls feel simpler at the start and stay simple only while the system stays small. A message bus trending again is attention landing on that trade, at the scale where it starts to hurt.
Key takeaways
- Publish-subscribe sends messages to a subject, and any number of subscribers receive them without the producer knowing who they are.
- Direct service-to-service calls couple availability, so one slow or down service can take its callers down with it.
- Delivery semantics (at-most-once, at-least-once, exactly-once patterns) and persistence options are the real design work on a message bus.
- NATS is known for a tiny footprint and low latency, which is why it appears in edge and IoT deployments alongside cloud backends.
- An event topic lets one side fail or lag without taking the other side down, which is the decoupling win in one sentence.
Quick answers
What is publish-subscribe?
Senders publish messages to a subject, and subscribers receive them without knowing who produced them.
Why does a bus reduce coupling?
Publishers depend on the topic, never on individual consumers, so either side can change or fail alone.
What are delivery semantics?
The guarantees a bus makes about losing or duplicating messages: at-most-once, at-least-once, and exactly-once patterns.
Why do edge systems choose NATS?
A tiny footprint and low latency fit devices that lack the memory for heavyweight infrastructure.
What messages should be durable?
The ones a restarting subscriber must still receive, such as orders or payments, decided per subject.
One thing to do tonight
Pick one internal notification your code sends by direct HTTP call and sketch the subject name it would live on, plus who would subscribe. If the sketch takes under ten minutes, the call was a candidate for an event all along.