16
Microservices Architecture Abid H Khan

Microservices architecture

Embed Size (px)

Citation preview

Page 1: Microservices architecture

Microservices Architecture

Abid H Khan

Page 2: Microservices architecture

AgendaMonolithic ArchitectureScallingMicroservices Architecture

Page 3: Microservices architecture

Monolithic ArchitectureAll functionality is coupled in single process

The application is either layered or hexagonal

Presentation layerBusiness layerData layerIntegration layer

Page 4: Microservices architecture

Hexagonal Architecture

Page 5: Microservices architecture

ObjectivesThere is a team of developers working on the application

New team members must quickly become productive

The application must be easy to understand and modify

Ensure continuous deployment of the application

Page 6: Microservices architecture

ObjectivesMust satisfy scalability and availability requirements

Introducing technologies

Page 7: Microservices architecture

Scale Cube

Page 8: Microservices architecture

X axis scaling

Page 9: Microservices architecture

Y axis scaling

Page 10: Microservices architecture

Z axis scaling

Page 11: Microservices architecture

Microservices

Page 12: Microservices architecture

AdvantagesEach microservice is smallEach service can be deployed independently

Easier to scale developmentIncreases faultoranceEliminate long term association with technology stack

Page 13: Microservices architecture

DrawbacksComplexity of creating distributed system

Deployment complexityAdditional memory consumption

Page 14: Microservices architecture

How to partition By verb or use caseBy nouns or resources

Page 15: Microservices architecture

Which one to chooseAt the early stage of the application when challenge is how to rapidly adapt business model

At stage when scale is important

Page 16: Microservices architecture