Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Title Page
Copyright and Credits
Hands-On Microservices – Monitoring and Testing
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
Summary
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
Benefits
Drawbacks
A single instance of microservice per container
Benefits
Drawbacks
Service deployment platforms
Serverless deployment
Summary
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
Benefits
The Eventual Consistency pattern
Domain-specific protocol
Summary
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
Summary
External API Gateway
Technical Requirements
Introducing an API gateway
Client-to-microservice communication
Drawbacks
Using an API gateway
Benefits
Drawbacks
Building an API gateway
API gateway performance and scalability
Building an API gateway using a reactive programming model
API gateway and service invocation mechanism support
API gateway and service discovery
Handling partial failures
Building an API gateway using Spring Cloud's Netflix Zuul proxy
MuleSoft
Summary
Testing of Microservices
Technical Requirements
Testing strategies for microservices
The testing pyramid strategy
The testing honeycomb strategy
Unit testing
Unit testing – an example
Integration testing
Database integration testing – an example
REST API integration – an example
Component testing
Contract testing
End-to-end testing
UI/functional testing
Summary
Performance Testing of Microservices
Technical Requirements
JMeter
Installing JMeter
Performance testing microservices with JMeter
Creating a performance test plan
Gatling
Installing Gatling
Performance testing with Gatling
Maven plugin configuration
Gradle plugin configuration
Running a Gatling test suite using the Gatling GUI
The ReadyAPI
Summary
Performance Monitoring of Microservices
Identifying performance counters to test microservices
Performance monitoring tools
AppDynamics
Dynatrace
AWS CloudWatch
Nagios
New Relic
Datadog (for Docker performance monitoring)
Component-level monitoring
Domain-specific monitoring
Dashboards and identifying issues by going through logs
Grafana
Summary
Other Books You May Enjoy
Leave a review - let other readers know what you think
← Prev
Back
Next →
← Prev
Back
Next →