JavaScript (Node.js) and Microservices: From Idea to Production
JavaScript (Node.js) and Microservices: From Idea to Production
Summary:
This book is a practical guide to building distributed systems based on microservices architecture using Node.js and JavaScript. You will learn how to break a monolithic application into independent, loosely coupled services, each responsible for its own business logic.
What the book covers
The book covers the full microservices development cycle: from design and inter-service communication to deployment and monitoring in production. You will learn how to:
- Design microservices architecture considering context boundaries and domain models
- Organize inter-service communication via REST API, gRPC, and message queues (RabbitMQ, Kafka)
- Work with databases in a distributed environment (each service has its own database)
- Implement patterns: API Gateway, Service Discovery, Circuit Breaker, Saga
- Containerize applications with Docker and orchestrate them with Kubernetes
- Set up centralized logging, tracing, and monitoring (ELK, Prometheus, Grafana)
- Test microservices: unit, integration, end-to-end testing
Who this book is for
This book is intended for JavaScript developers with an intermediate knowledge of Node.js (able to create REST APIs, work with Express, understand asynchrony). It will be useful for:
- Backend developers who want to transition from monoliths to microservices
- Team leads and architects planning a distributed system
- DevOps engineers who want to deepen their understanding of the internal workings of Node.js services
What you will learn
After reading, you will be able to:
- Make informed decisions between monoliths and microservices
- Design fault-tolerant distributed systems
- Effectively manage state and transactions between services
- Automate deployment and scaling
- Ensure real-time system observability
Each chapter contains practical examples, ready-to-use code snippets, and exercises for independent work. All examples are available in a GitHub repository.
Format: PDF, EPUB, MOBI. Suitable for reading on computers, tablets, and e-readers.