Practical NATS by Waldemar Quevedo

by Waldemar Quevedo · Views: 150 · Format: EPUB · Language: English (en)

Cover of Practical NATS by Waldemar Quevedo — Free EPUB on AnyEbooksEPUB

of what each does. Table 2-1 The NATS Protocol Command Sent By Used To INFO Server Announce metadata to clients CONNECT Client Send credentials and metadata to server PUB Client Send a message SUB Client Register interest in subject UNSUB Client Limit or remove interest in subject MSG Server Deliver a message to client +OK Server Ack client that command was processed PING, PONG Client & Server Make a server roundtrip and keepalives -ERR Server Announce errors In the following sections, we take a look at each one of these commands and give examples of how they are used. One of the benefits of the protocol being in plaintext is that it also makes it easier to interact with the server manually, and in this chapter, we will be doing just that. Throughout this chapter we will be using a basic telnet-based session and sending raw bytes to the server showing the different PubSub features from NATS. Why Not a Binary Protocol Instead? Remember that the traits that the NATS project values are simplicity , performance , and security . The NATS team tries to keep a balance between them, and although having a binary protocol can possibly open the door to more performance, there is a trade-off in terms of maintenance and familiarity for developers, so a text protocol was chosen instead. Binary protocols in comparison are complex and hard to debug, which would have hindered the ability for community-led clients. Redis is another popular project that took a similar decision and has a large n

★★★★★

Rate this eBook

File Name:dadc39ec7ec280c2774451ea85a82088.epub
Original Title:Practical NATS
Creator / Author:Waldemar Quevedo
Language:English (en)
Identifier:ASIN:398550
Publisher:Waldemar Quevedo Publishing
Category:Art & Photography
Format:📗 EPUB eBook
File Size:3.5 MB

Community Reviews

Loading verified community reviews...

Related Art & Photography Titles