What is Nats?

What is Nats?

Nats is a message broker where it relays messages from clients to clients in realtime It can also broadcast messages to everyone.

Basic concept

  1. Client A connects to nats-server.
  2. Client B connects to nats-server.
    1. Client A subcribes(listens) to Subject_X(channel/room).
    2. Client B publishes(writes) a message to Subject_X(channel/room).
    3. Client A will receive message published by Client B.

Use cases

Anything that requires realtime messaging:

Selling point

It is freaking small. Perfect for embedded devices.