+ All Categories
Home > Documents > Rest Vs. Reactive - Schedschd.ws/hosted_files/apiworld2017/15/Makary Mark Logic Keepers.pdf ·...

Rest Vs. Reactive - Schedschd.ws/hosted_files/apiworld2017/15/Makary Mark Logic Keepers.pdf ·...

Date post: 06-May-2018
Category:
Upload: truonganh
View: 225 times
Download: 3 times
Share this document with a friend
15
Rest Vs. Reactive Interaction Patterns in Microservices Architecture
Transcript

Rest Vs. Reactive

Interaction Patterns in Microservices Architecture

IT Consulting

Microservices

System is not very Responsive

API G

atew

ay

Create Order

Inventory Services

Price Services

Payment Services

Shipping Services

Analytics Services

Synchronous and Rest based Architecture

Potential Performance Drawbacks

! I/O & DB blocking !Monoliths and performance management !Poor internal and external end-point

management

Reactive Architecture

!Architecture Style !Responsive !Resilient !Elastic !Message and Event Driven !Asynchronous & non-blocking

API G

atew

ay

Order Management

Service

Inventory Services

Price Services

Payment Services

Shipping Services

Non-blocking and Asynchronous Inter-Service Communication

Order Management

Service Message Broker

C

C

E

E

C Command E Event

Rest

Analytics Services

The Actor Model and the Akka ToolKit

Less-blocking Persistence, DDD, CQRS and Event Sourcing

E Event

ProducerProducer

Event Subscriber

Event Processor

Event Store Journal

E

E

E

E

QueryQuery State

Reinventing the Wheel

!DDD, CQRS and Event Sourcing !Kafka !Actor !Akka !Lagom

Potential Concerns

!Business Process Changes !More complex DevOps !Learning Curve

The rise of the Microservices frameworks

Image Copyright Lightbend

Thank You


Recommended