Luis Hernandez
Software Developer
lhernandez@nearsoft.com
It comes when an application is broken down into smaller, composable pieces which work together.
Microservices are a contrast to a traditional, "monolithic" application which is all developed all in one piece.
Account Service
Order Service
Inventory Service
...
User Service
Order Service
Inventory Service
Order
Service
Inventory
Service
POST /selectItem
200
Purchase Item Process
Select Item
Retrieve Availability
Finish Purchase
Services communicate through messages.
Everything happens service-service
Messages
Message Broker
Channels
Publisher
Subscriber
Topics
Queues
Message Broker
Channel
Publisher
Subscriber
Subscriber
Services
Message Broker
Messages
Channels
Order
Service
Inventory
Service
itemSelected
Select Item
Retrieve Availability
Finish Purchase
Purchase Item Process
Select Other item
View shopping Cart
Message Broker
confirmedItem
itemSelected
confirmedItem
Service
Order
Service
Inventory
Service
User
Service
Message Broker
purchaseFinished
itemSelected
Login
Logging
Service
purchaseFinished
An example of a message broker.
Kafka is a distributed publish-subscribe messaging system that is designed to be fast, scalable, and durable.
Subscriber
Subscriber
Publisher
Zookeeper
Kafka Broker
Kafka Broker