更新时间:2021-06-24 18:24:50
coverpage
Title Page
Dedication
Packt Upsell
Why subscribe?
Packt.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Code in action
Conventions used
Get in touch
Reviews
Software Architecture Patterns
The monolithic architecture pattern
Monolithic application example
Benefits of monolithic application architecture
When to use monolithic architecture
Limitations of monolithic application architecture
Software development processes with monolithic architecture
Microservice architecture pattern
Microservice application example
Benefits of microservice application architecture
Disadvantages of the microservice architecture pattern
When to use microservice architecture
Service-oriented architecture (SOA)
SOA versus microservice architecture
Summary
Anatomy of Microservice Decomposition Services
Anatomy of a microservice
Context boundaries
Decomposition based on business capability
Decomposition on the basis of domain
Microservice chassis to handle cross-cutting concerns
Building microservices
SOAP versus RESTful microservices
Microservices Deployment Patterns
Microservices deployment
Multiple instances of microservices per host
A single instance of a microservice per host
Benefits
Drawbacks
A single instance of a microservice per VM
A single instance of microservice per container
Service deployment platforms
Serverless deployment
Inter-Service Communication
Approaches to service communication
Synchronous communication
REST
Benefits of REST
Google Remote Procedure Calls
Apache Thrift
Asynchronous communication
Messaging
Benefits of messaging
Drawbacks of messaging
Transactional messaging
One-to-one service communication
One-to-many service communication
Event-based communication
The Command Query Responsibility Segregation pattern
The Event Sourcing Model pattern
The Eventual Consistency pattern
Domain-specific protocol
Service Registry and Discovery
Technical Requirements
The need for service discovery in microservice architecture
Service discovery patterns
The client-side discovery pattern
The server-side discovery pattern
Microservice registry and discovery with Eureka
Implementing Service Registry with Eureka
Implementing the Eureka Discovery server
External API Gateway
Introducing an API gateway
Client-to-microservice communication
Using an API gateway
Building an API gateway
API gateway performance and scalability
Building an API gateway using a reactive programming model