𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Microservices Development Cookbook: Design and build independently deployable, modular services

✍ Scribed by Paul Osman


Publisher
Packt Publishing
Year
2018
Tongue
English
Leaves
251
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Quickly learn and employ practical methods for developing microservices

Key Features

  • Get to grips with microservice architecture to build enterprise-ready applications
  • Adopt the best practices to find solutions to specific problems
  • Monitor and manage your services in production

Book Description

Microservices have become a popular way to build distributed systems that power modern web and mobile apps. Deploying your application as a suite of independently deployable, modular, and scalable services has many benefits. In this book, you'll learn to employ microservices in order to make your application more fault-tolerant and easier to scale and change.

Using an example-driven approach, Microservice Development Cookbook introduces you to the microservice architectural style. You'll learn how to transition from a traditional monolithic application to a suite of small services that interact to provide smooth functionality to your client applications. You'll also learn about the patterns used to organize services, so you can optimize request handling and processing and see how to handle service-to-service interactions. You'll then move on to understanding how to secure microservices and add monitoring in order to debug problems. This book also covers fault-tolerance and reliability patterns that help you use microservices to isolate failures in your applications.

By the end of the book, you’ll be able to work with a team to break a large, monolithic codebase into independently deployable and scalable microservices. You'll also study how to efficiently and effortlessly manage a microservice-based architecture.

What you will learn

  • Learn how to design microservice-based systems
  • Create services that fail without impacting users
  • Monitor your services to perform debugging and create observable systems
  • Manage the security of your services
  • Create fast and reliable deployment pipelines
  • Manage multiple environments for your services
  • Simplify the local development of microservice-based systems

Who this book is for

Microservice Development Cookbook is for developers who would like to build effective and scalable microservices. Basic knowledge of the microservices architecture is assumed.

Table of Contents

  1. Breaking the Monolith
  2. Edge Services
  3. Interservice Communication
  4. Client Patterns
  5. Reliability Patterns
  6. Data Modelling
  7. Monitoring
  8. Scaling
  9. Continuous Integration & Delivery

✦ Table of Contents


Cover
Title Page
Copyright and Credits
Packt Upsell
Contributors
Table of Contents
Preface
Chapter 1: Breaking the Monolith
Introduction
Organizing your team
How to do it…
Discussion
Decomposing by business capability
How to do it...
Identifying bounded contexts
How to do it...
Migrating data in production
How to do it...
Refactoring your monolith
How to do it...
Evolving your monolith into services
How to do it...
Evolving your test suite
Getting ready
How to do it...
Using Docker for local development
Getting ready
How to do it...
Routing requests to services
How to do it...
Chapter 2
: Edge Services
Introduction
Controlling access to your service with an edge proxy server
Operational notes
How to do it...
Extending your services with sidecars
How to do it...
Using API Gateways for routing requests to services
Design considerations
How to do it...
Stopping cascading failures with Hystrix
How to do it...
Rate limiting
How to do it...
Using service mesh for shared concerns
How to do it...
Chapter 3: Inter-service Communication
Introduction
Service-to-service communication
How to do it...
Asynchronous requests
How to do it...
Service discovery
How to do it...
Registering with the service registry
Finding services
Server-side load balancing
How to do it...
Client-side load balancing
How to do it...
Building event-driven microservices
How to do it...
Message producer
Message consumer
Evolving APIs
How to do it...
Chapter 4: Client Patterns
Introduction
Modeling concurrency with dependent futures
How to do it...
Backend for frontend
How to do it...
Consistent RPC with HTTP and JSON
How to do it...
Using Thrift
How to do it...
Using gRPC
How to do it...
Chapter 5: Reliability Patterns
Introduction
Using circuit breakers
How to do it...
Retrying requests with exponential backoff
How to do it...
Improving performance with caching
How to do it...
Fronting your services with a CDN
How to do it...
Gracefully degrading the user experience
Verifying fault tolerance with Gameday exercises
Prerequisites
How to do it...
A template for Gameday exercises
Introducing automated chaos
How to do it...
Chapter 6: Security
Introduction
Authenticating your microservices
How to do it...
Securing containers
How to do it...
Secure configuration
How to do it...
Secure logging
Infrastructure as Code
How to do it...
Chapter 7: Monitoring and Observability
Introduction
Structured JSON logging
How to do it...
Collecting metrics with StatsD and Graphite
How to do it...
Collecting metrics with Prometheus
How to do it...
Making debugging easier with tracing
How to do it...
Alerting us when something goes wrong
How to do it...
Chapter 8: Scaling
Introduction
Load testing microservices with Vegeta
How to do it...
Load testing microservices with Gatling
How to do it...
Building auto-scaling clusters
How to do it...
Chapter 9
: Deploying Microservices
Introduction
Configuring your service to run in a container
How to do it…
Running multi-container applications with Docker Compose
How to do it…
Deploying your service on Kubernetes
How to do it…
Test releases with canary deployments
How to do it…
Other Books You May Enjoy
Index


πŸ“œ SIMILAR VOLUMES


Building Microservices Applications on M
✍ Harsh Chawla, Hemant Kathuria πŸ“‚ Library πŸ“… 2019 πŸ› Apress 🌐 English

<p>Implement microservices starting with their architecture and moving on to their deployment, manageability, security, and monitoring. This book focuses on the key scenarios where microservices architecture is preferred over a monolithic architecture.<br><i>Building Microservices Applications on Mi

Python microservices development: build,
✍ ZiadΓ©, Tarek πŸ“‚ Library πŸ“… 2017 πŸ› Packt Publishing 🌐 English

The full stack - OpenResty, Circus and Flask -- OpenResty -- Circus -- Docker-based deployments -- Docker Compose -- Introduction to Clustering and Provisioning -- Summary -- Chapter 11: Deploying on AWS -- AWS overview -- Routing - Route53, ELB, and AutoScaling -- Execution - EC2 and Lambda -- Stor

Python microservices development: build,
✍ ZiadΓ©, Tarek πŸ“‚ Library πŸ“… 2017 πŸ› Packt Publishing 🌐 English

The full stack - OpenResty, Circus and Flask -- OpenResty -- Circus -- Docker-based deployments -- Docker Compose -- Introduction to Clustering and Provisioning -- Summary -- Chapter 11: Deploying on AWS -- AWS overview -- Routing - Route53, ELB, and AutoScaling -- Execution - EC2 and Lambda -- Stor

Microservices Deployment Cookbook
✍ Vikram Murugesan πŸ“‚ Library πŸ“… 2017 πŸ› Packt Publishing 🌐 English

<h4>Key Features</h4><ul><li>Adopt microservices-based architecture and deploy it at scale</li><li>Build your complete microservice architecture using different recipes for different solutions</li><li>Identify specific tools for specific scenarios and deliver immediate business results, correlate us

Microservices for the Enterprise: Design
✍ Kasun Indrasiri, Prabath Siriwardena πŸ“‚ Library πŸ“… 2018 πŸ› Apress 🌐 English

Architectural challenges using microservices with service integration and API management are presented and you learn how to eliminate the use of centralized integration products such as the enterprise service bus (ESB) through the use of composite/integration microservices. Concepts in the book are

Microservices for the Enterprise: Design
✍ Kasun Indrasiri; Prabath Siriwardena πŸ“‚ Library πŸ“… 2018 πŸ› Apress 🌐 English

Understand the key challenges and solutions around building microservices in the enterprise application environment. This book provides a comprehensive understanding of microservices architectural principles and how to use microservices in real-world scenarios. Architectural challenges using microse