MicroServices

MicroServices

how small should the module/microservice be?

It is debatable, but each microservice is an independent entity which should be fully developed in 2-3 weeks

Important Decisions

Technologies for Request/Response Calls

Technologies for Asynchronous Calls

Benefits of microservices

Issues with microservices

Whether to use microservice or go for monolithic architecture?

Monolithic is easy for simple applications, for large complex applications, microservices is the way to go.

Imp Note

API Gateway

API Gateway: Pros

API Gateway: Cons

Implementing API gateway

Handling failures in API gateway

MicroServices Inter Services Communication

Below are the interaction styles

Interaction styles

Note

Services can be written using either of the below

Synchronous Request-Response based Inter Process Communication(IPC)

Service Discovery in a micro-service architecture

Client Side Discovery

Cons of Client side discovery

Server Side Discovery

Event Driven Microservice architecture.

microservice publishes an event when something important related to its business entity happens.

Events can be raised through

microservice publishes an event when something important related to its business entity happens.

Note

Deploying MicroServices

Refactoring a big project into small microservices

ACID

BASE