Book description
A complete reference for designing and building scalable microservices platforms with NATS messaging technology for inter-service communication with security and observability
Key Features
- Understand the use of a messaging backbone for inter-service communication in microservices architecture
- Design and build a real-world microservices platform with NATS as the messaging backbone using the Go programming language
- Explore security, observability, and best practices for building a microservices platform with NATS
Book Description
Building a scalable microservices platform that caters to business demands is critical to the success of that platform. In a microservices architecture, inter-service communication becomes a bottleneck when the platform scales. This book provides a reference architecture along with a practical example of how to implement it for building microservices-based platforms with NATS as the messaging backbone for inter-service communication.
In Designing Microservices Platforms with NATS, you'll learn how to build a scalable and manageable microservices platform with NATS. The book starts by introducing concepts relating to microservices architecture, inter-service communication, messaging backbones, and the basics of NATS messaging. You'll be introduced to a reference architecture that uses these concepts to build a scalable microservices platform and guided through its implementation. Later, the book touches on important aspects of platform securing and monitoring with the help of the reference implementation. Finally, the book concludes with a chapter on best practices to follow when integrating with existing platforms and the future direction of microservices architecture and NATS messaging as a whole.
By the end of this microservices book, you'll have developed the skills to design and implement microservices platforms with NATS.
What you will learn
- Understand the concepts of microservices architecture
- Get to grips with NATS messaging technology
- Handle transactions and message delivery guarantees with microservices
- Implement a reference architecture for microservices using NATS
- Discover how to improve the platform's security and observability
- Explore how a NATS microservices platform integrates with an enterprise ecosystem
Who this book is for
This book is for enterprise software architects and developers who want to gain hands-on microservices experience for designing, implementing, and managing complex distributed systems with microservices architecture concepts. Intermediate-level experience in any programming language and software architecture is required to make the most of this book.
Table of contents
- Designing Microservices Platforms with NATS
- Contributors
- About the author
- About the reviewers
- Preface
- Section 1: The Basics of Microservices Architecture and NATS
- Chapter 1: Introduction to the Microservice Architecture
- Chapter 2: Why Is Messaging Important in the Microservice Architecture?
- Chapter 3: What Is NATS Messaging?
- Section 2: Building Microservices with NATS
- Chapter 4: How to Use NATS in a Microservice Architecture
- Chapter 5: Designing a Microservice Architecture with NATS
- Chapter 6: A Practical Example of Microservices with NATS
- Chapter 7: Securing a Microservices Architecture with NATS
-
Chapter 8: Observability with NATS in a Microservices Architecture
- Technical requirements
- Observability in a microservices context
- Observability features of NATS
-
Using NATS observability in a microservices architecture
- Prometheus
- Grafana
- Loki and Promtail
- Adding the health check API
- Adding CorrelationID to the requests
- Adding improved logging for microservices
- Collecting metrics and exposing them for application monitoring
- Exporting NATS server metrics
- Starting microservices
- Configuring Prometheus
- Configuring Loki and Promtail
- Configuring Grafana
- Summary
- Section 3: Best Practices and Future Developments
-
Chapter 9: How Microservices and NATS Coexist with Integration Platforms
- Technical requirements
- Understanding the brownfield enterprise software system
- How do integration platforms work in an enterprise software system?
- How do microservices and NATS integrate with the integration platform?
- How to build an enterprise platform with microservices, NATS, and the integration platform
- Setting up observability
- Summary
- Chapter 10: Future of the Microservice Architecture and NATS
- Other Books You May Enjoy
Product information
- Title: Designing Microservices Platforms with NATS
- Author(s):
- Release date: November 2021
- Publisher(s): Packt Publishing
- ISBN: 9781801072212
You might also like
book
Building Microservices with Go
Your one-stop guide to the common patterns and practices, showing you how to apply these using …
book
Practical Event-Driven Microservices Architecture: Building Sustainable and Highly Scalable Event-Driven Microservices
In the simplest terms, event-driven architectures are like onions; they are manageable as a single layer …
book
Microservices: Up and Running
Microservices architectures offer faster change speeds, better scalability, and cleaner, evolvable system designs. But implementing your …
video
Microservices Patterns Video Edition
"A comprehensive overview of the challenges teams face when moving to microservices, with industry-tested solutions to …