+ All Categories
Home > Software > Exploiting Reality with Microservices in Production Systems

Exploiting Reality with Microservices in Production Systems

Date post: 16-Apr-2017
Category:
Upload: lightbend
View: 2,899 times
Download: 2 times
Share this document with a friend
39
Transcript

THE 6 TRAITS OF A REACTIVE MICROSERVICE

1. Isolation2. Asynchronicity3. Autonomicity

4. Single Responsibility5. Exclusive State

6. Mobility

One actor is no actor.Actors come in systems.

— Carl Hewitt

MICROSERVICESCOME IN SYSTEMS

SYSTEMS NEED TO

EXPLOITREALITY

INFORMATION HAS

LATENCY

WE ARE ALWAYS LOOKING INTO THE PAST

INSIDE DATA: OUR CURRENT PRESENTOUTSIDE DATA: BLAST FROM THE PASTBETWEEN SERVICES: HOPE FOR THE FUTURE

— PAT HELLAND (DATA ON THE INSIDE VS DATA ON THE OUTSIDE)

EMBRACE THE CONSTRAINTS OF

DISTRIBUTED SYSTEMS

CHALLENGES

1. Looking up Services2. Managing API Complexity

3. Managing Communication Complexity4. Integrating With Other Systems

5. Managing Security6. Minimizing Coordination & Data Coupling

SERVICE DISCOVERY- INVERSION OF CONTROL

- CLIENT-SIDE OR SERVER-SIDE- FAVOR AP-BASED TOOLS

HOW CAN WE MANAGE

API COMPLEXITY?

Be conservativein what you do,

be liberal in what youaccept from others.

— Jon Postel

CONSIDER USING AN

ANTI-CORRUPTION LAYER(CLASSIC DDD PATTERN)

CONSIDER USING AN

API GATEWAYTO SIMPLIFY CLIENT COMMUNICATION

MANAGING THE

COMPLEXITY OFCOMMUNICATION

ROUTING AND TRANSFORMATION OF STREAMS

INTEGRATINGWITH OTHER SYSTEMS

SYNCHRONOUSCOMMUNICATIONPUTS YOU AT THE OTHERSYSTEM'S MERCY

USE CIRCUIT BREAKERS

ALWAYS APPLY

BACK-PRESSURE

SECURITY MANAGEMENT

The user’s going to pick dancing pigs over

security every time.— Bruce Schneier

AUTHENTICATIONAND

AUTHORIZATION

POSSIBLE SECURITY SCHEMES

> TLS Client Certificates> HTTP Basic Authentication> Asymmetric Request Signing

> HMAC (Hash Message Authentication Code)

Words are very unecessary.

They can only do harm.Enjoy the silence.

— Enjoy the Silence by Martin Gore (Depeche Mode)

MINIMIZE COUPLING&

COMMUNICATION

Silence is not only golden, it is seldom

misquoted.— Bob Monkhouse

GUESS.APOLOGIZE.

COMPENSATE.

IT'S HOW THE WORLD WORKS

WHAT ABOUT

TRANSACTIONS?

In general,application developerssimply do not implement

large scalable applications

assuming distributed transactions.

— Pat Helland

SAGAPATTERN

lightbend.com/pov

Reactive RoundtableWorld Tour by Lightbend

lightbend.com/reactive-roundtable

Proof of Value ServiceAccelerate Project Success


Recommended