Practical NATS: From Beginner to Pro

Waldemar Quevedo

  • 出版商: Apress
  • 出版日期: 2018-06-08
  • 定價: $1,980
  • 售價: 8.0$1,584
  • 語言: 英文
  • 頁數: 280
  • 裝訂: Paperback
  • ISBN: 148423569X
  • ISBN-13: 9781484235690
  • 相關分類: 網路通訊
  • 立即出貨 (庫存 < 4)

買這商品的人也買了...

相關主題

商品描述

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.

 

商品描述(中文翻譯)

學習使用NATS和消息傳遞作為服務之間通信的解決方案。NATS項目自2010年以來一直存在,但由於其很好地適應了雲原生應用和微服務架構的範式,近年來變得越來越受歡迎。由於其出色的性能特性(單個服務器每秒可以推送數百萬條消息),以及整體簡單的設計,它正迅速成為一個非常有吸引力的選擇。

首先,您將學習NATS的基礎知識,例如其設計、協議以及它所支持的通信風格,還有NATS客戶端的內部結構,以及如何使用所有官方客戶端提供的基本API。您還將了解如何使用配置文件設置和配置NATS服務器。

接下來,您將使用真實項目,看到如何使用NATS作為控制平面來開發一個可投入生產的雲原生應用程序,用於客戶端之間的通信。最後,您將學習NATS客戶端的高級用法,例如基於心跳的故障檢測器的實現,跟踪或從單個請求中收集多個響應。

也許您熟悉REST風格的API,並希望轉向基於消息的方法。《實用NATS》是開始的完美地方。

您將學到什麼:

- 使用NATS構建應用程序,將其用作組件之間通信的控制平面
- 探索NATS的基礎知識,例如協議在幕後的工作方式,以及使用客戶端提供的基本構建塊可能實現的更高級通信風格
- 設置、操作和配置NATS服務器,以及如何解決常見故障場景的問題

這本書適合對於微服務和雲原生應用程序開發中出現的一些問題尋找解決方案的人,例如服務發現、低延遲請求、負載平衡、跟踪和監控等。同時也適合需要進一步幫助開始使用NATS的採用者。理想情況下,您應該