© Waldemar Quevedo 2018
Waldemar QuevedoPractical NATShttps://doi.org/10.1007/978-1-4842-3570-6_2

2. The NATS Protocol

Waldemar Quevedo1 
(1)
San Francisco, California, USA
 

NATS features a simple, plaintext-based protocol designed for fast and reliable PubSub messaging. Having such a simple protocol eases the task of implementing new clients, allowing you instead to focus on the fun parts, like improving the performance of the implementation.

In this chapter, we provide an overview of the protocol and take a look at each of the commands and their roles, as well as the different styles of communication that they enable together.

Overview of the Protocol

There are 10 commands in total that are used by both the client and the server. Each protocol line ...

Get Practical NATS: From Beginner to Pro now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.