Professional Documents
Culture Documents
2
Monolithic Applications
5
Web Services
Service broker
WSDL WSDL
SOAP
Requester or Service provider
REST
6
Micro-services
First presentation of
Microservices concept microservices by James Lewis:
was first discussed in a
workshop of software http://2012.33degree.org/pdf/Ja
mesLewisMicroServices.pdf
architects, Venice, 2011
7
Microservice
8
The Unix Philosophy
https://en.wikipedia.org/wiki/Unix_philosophy
9
Dependency Problem
Solution
1. The boundary is based on business context not technology
• No separation between front end and back end
2. Orchestration is implemented in microservices not in
infrastructure or communication
• Threads and workflows are managed by microservices,
3. Each microservice has a clear interface
4. Each microservice manages its own data
5. Microservices run on independent processes
• Could be deployed independently
10
Dependency Problem
Solution: No separation
between front end and
back end
HTTP HTTP
HTTP
REST REST
Customer Order Catalogue
11
Dependency Problem
12
Dependency Problem
13
Criteria for Creating New Micro services
Criteria for Creating New Micro services
14
Team Coordination
15
Interoperability Problem
Microservice solution
• Use lightweight communication mechanisms such as REST
and RPC
16
Consistency Problem
17
Consistency Problem
Microservices related-characteristics
• Asynchronous communication
• No shared data –or minimum shared
• No management of service states for consistency
Microservices solution
• Compensation operation for inconsistency
• Do not use central system for consistency
Ø Implement logic to detect inconsistency and to trigger
corrective operations
18
Resilience Problem
Potential failure
• Service might have bugs –crash
• Service may become unavailable due to hardware or
network problem
• Service may become slow to respond
Scalability for
monolithic applications
Front end
Load
balancer
Database Database
20
Scalability Problem
Scalability for
microservices
HTTP HTTP
HTTP
REST
Customer Order Order REST Catalogue
21
Characteristics of Microservices
22
Resources
23
Summary
24
Thank you.
25