Skip to main content
  • Book
  • © 2018

Practical NATS

From Beginner to Pro

Apress

Authors:

  • First book on the market that teaches NATS

  • Includes thorough explanations of the design behind the NATS server and its clients

  • Written by Waldemar Quevedo who has been using NATs for 5 years and has presented on NATs at a number of industry events, including StrangeLoop, AllThingsOpen, and GopherCon.

Buy it now

Buying options

eBook USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (10 chapters)

  1. Front Matter

    Pages i-xviii
  2. Introduction to NATS

    • Waldemar Quevedo
    Pages 1-18
  3. The NATS Protocol

    • Waldemar Quevedo
    Pages 19-41
  4. The NATS Clients

    • Waldemar Quevedo
    Pages 43-84
  5. Setting Up NATS

    • Waldemar Quevedo
    Pages 85-109
  6. High Availability with NATS Clustering

    • Waldemar Quevedo
    Pages 111-130
  7. Developing a Cloud-Native NATS Application

    • Waldemar Quevedo
    Pages 131-167
  8. Monitoring NATS

    • Waldemar Quevedo
    Pages 169-196
  9. Securing NATS

    • Waldemar Quevedo
    Pages 197-216
  10. Troubleshooting NATS

    • Waldemar Quevedo
    Pages 217-231
  11. Advanced NATS Techniques

    • Waldemar Quevedo
    Pages 233-256
  12. Back Matter

    Pages 257-260

About this book

Learn to use NATS and messaging as a solution for communication between services. The NATS project has been around since 2010, but it has become more popular in recent years due to how well it fits into the paradigm of cloud native applications and microservices architectures. It’s fast becoming a very attractive option thanks to its great performance characteristics--a single server can push millions of messages per second--and overall simple design.

First you will learn the fundamentals of NATS, such as its design, protocol and the styles of communications it enables, internals of the NATS clients, and how to use the basic API provided by all the official clients. You will also understand how to setup and configure NATS servers using the configuration file. 

Next you'll work with real-world projects and see how to develop a production-ready cloud native application using NATS as the control plane over which clients communicate. Finally you’ll learn advanced usage of the NATS clients, such as implementing heartbeats based failure detectors, tracing or collecting multiple responses from a single request.

Perhaps you are familiar with REST-style APIs, and want to make the transition into a messaging-based approach instead. Practical NATS is the perfect place to start.

What You'll Learn

  • Use NATS to build applications which use it as the control plane for communication among components
  • Explore the fundamentals of NATS such as how the protocol works under the hood to more advanced communication styles which are possible with the basic building blocks provided by the client
  • Setup, operate, and configure NATS servers, as well as how to troubleshoot common failure scenarios

Who This Book Is For

Anyone looking for a solution for some of the problems which come along with microservices and cloud native application development, such as service discovery, low latency requests, load balancing, tracing and monitoring for example. Also adopters of NATS who need further help getting started using it. Ideally you should have some familiarity with Go as that is the language of the code examples.

Authors and Affiliations

  • San Francisco, USA

    Waldemar Quevedo

About the author

Waldemar Quevedo is a Senior Software Engineer at Apcera, where he develops the Apcera Trusted Platform and is part of the NATS team. Previously, he formed part of the PaaS team at Rakuten in Tokyo, one of the early adopters of CloudFoundry for production usage, where he experienced operating NATS for the first time and became a fan of its simplicity. Waldemar has presented at a number of industry events, including StrangeLoop, AllThingsOpen, and GopherCon. You can find him on Twitter: @wallyqs.

Bibliographic Information

  • Book Title: Practical NATS

  • Book Subtitle: From Beginner to Pro

  • Authors: Waldemar Quevedo

  • DOI: https://doi.org/10.1007/978-1-4842-3570-6

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Professional and Applied Computing (R0), Apress Access Books

  • Copyright Information: Waldemar Quevedo 2018

  • Softcover ISBN: 978-1-4842-3569-0Published: 08 June 2018

  • eBook ISBN: 978-1-4842-3570-6Published: 07 June 2018

  • Edition Number: 1

  • Number of Pages: XVIII, 260

  • Number of Illustrations: 47 b/w illustrations

  • Topics: Open Source

Buy it now

Buying options

eBook USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access