Microservices for
Mortals
@BertErtman
• Fellow at Luminis
• Background in all things Java
since 1995
• Java Champion, JavaOne
Rockstar Speaker, and a Duke’s
Choice Award Winner
• Involved in architecting and
implementing dozens of large
scale systems over the past 20
years or so
• Book author for O’Reilly,
speaker at many conferences
About me
Italian Food Analogy
Before SOA:
SOA:
Microservices:
Spaghetti
Lasagna
???
Pick a side…
Microservices for Mortals
Microservices for Mortals
What if I’m allergic to
Italian food? Can I still do
Microservices?
Where did it come from?
• People have been doing AJAX, NoSQL, SOA, etc before they
even got a name
• Microservices style architectures are a response to adjust
software architecture to an ever-evolving spectrum. It addresses
Business Agility through technology:
• Usage of cloud-based infrastructure and services
• DevOps
• The need to scale up the number of people/teams
• Client-side revolution both in technologies and devices
Microservices
are about
Business Agility
Microservices are like SOA,
but only the good parts
What happened to SOA?
• SOA quickly turned into the rape victim of a vendor
infested lock-in massacre, excessively
complicating all good advice into giant overpriced
hairballs sold as fake middleware, ESBs, and
appliances.
Microservices for Mortals
Image credit: http://blogs.gartner.com/gary-olliffe/files/2015/01/InnerOuterMSA.png
Microservices for Mortals
Which pill do you take?
blue pill world
• Blissful ignorance
• Hey, since everyone and their mother seems to be
tweeting about this microservices thing, it must be cool,
right?
• Heck, even Martin Fowler is blogging about it. Now it’s
definitely mainstream
• Dude, it’s on the freakin’ Technology Radar!
• Btw, this seems to be a killer way to introduce Node.js to
my customer, yeah!
Which pill do you take?
red pill world
• Painful truth of reality
• Where do we defy the laws of (IT) physics?
• This thing is about distributed computing which
after all these years is still very hard to do!
• This thing is about asynchronous programming
models, which are hard to grasp
• It has a number of other gotcha’s which I will go into…
There is no spoon
• Forget synchronous programming models
• Forget a single Enterprise Domain Model
• Forget ACID transactions
• Forget Relational Integrity
Welcome to red pill world
Microservices for Mortals
Picturecredit:@ParisPic
About Monoliths
• The word ‘monolith’ has a negative
connotation
• Not all non-microservices apps 

are bad applications
• What do you call an application
that everyone wants to interface
with but was not designed to do?
Monolith?
a successful
application?
When monoliths are bad
• But… such systems can end up as monoliths with all the
negative connotations to it as they:
• Start to build up massive technical debt
• Become hard to change without breaking stuff
• QA and test cycles take lots of time (expensive)
• When heavy internal coupling starts to take over control
of the application
• Become married to the underlying technical stack
Monolith to Microservices
approach
• As was recently suggested by Martin Fowler, et al.
the Monolith-First approach is a way of “strangling
off services from a monolithic application”.
• This makes great theory, but is pretty hard to do in
practice
• Often times building blocks on the inside of an
application are not suitable as building blocks
outside of an application
Monolith to Microservices
Struggles
• Initial Investment
• Data Strategy
• Synchronous 

vs Asynchronous
• Conway’s Law
• Re-use Traps
• Dealing with Failure
Initial Investment
• So-called “Outer Architecture”
• Service Discovery
• Logging
• Metrics and Analytics
• DevOps process in-place
• Solid CI/CD practices
• Impact on testing strategy
Data Strategy
Data Strategy
• Don’t have multiple microservices share the same
database model and perform updates on it
• this results in unwanted coupling
• Separate at least read/write access if you must
• Better: separate data stores for each service
Data Strategy
• Q: What if I have common data?
• A: Either perform a call to another service or just
copy the data
• Q: How do I deal with referential integrity?
• A: Move it up in the application layer
Synchronous vs
Asynchronous
• Within the monolith, most communication will be
synchronous
• Your interfaces have been designed with
synchronous, in-process, interactions in mind
• May be chatty (fine-grained)
• Rethinking interaction patterns is essential
• Rethink the communication protocol as well
Service Communication
• Standardize on a common communication protocol
• Oftentimes people choose REST, but there are
others
• protobuf, thrift, zeromq, mqtt, …
• Is REST fast enough to do massive fan-out?
• Maybe have two: synchronous and asynchronous
Avoid re-use traps
• Q: What is the best strategy for reusing common
functionality between microservices?
• A: Copy it in the beginning of the project if you
must. Never look back. Microservices are designed
to be TOTALLY independent of each other,
remember?
Conventions over
abstractions!
Conway’s Law
So here is the obligatory reference to Conway’s Law:
“Organizations which design systems ... are 

constrained to produce designs which are copies of 

the communication structures of these organizations"
—M. Conway 1968
What it actually means
• Make sure the organization is compatible with the
software architecture
• If your (microservices) architecture does not reflect
the way your organization is structured, don’t even
bother going that way!
• It also means that your team should be cross-
functional. Everyone you need to build, maintain
and get it into production must be part of the team
This is hard!
SOA Adoption Model
Microservices for Mortals
Microservices for Mortals
Microservices for Mortals
Failure will
ALWAYS
happen
Design for Failure
• Dependent services may be unavailable or too slow to respond
• Minimize human intervention
• failure happens all the time, so it shouldn’t be a big deal
• fail rather sooner than later (prevent cascading)
• Horizontal clustering to the rescue (multiple services)
• Resilience Patterns to the rescue
• CircuitBreaker, Bulkhead, Caching, Retry, Messaging, etc
• This is complicated stuff. It is not just about throwing Hystrix or some
other library in
Some take-aways
• The essence of Microservices is about structuring
systems differently
• It’s about Modularity
• It’s about Separation of Concerns
• It’s about Single Responsibility Principle
• It addresses Business Agility through technology
• Those are not bad things!
However…
• Everything comes at a price
• Aligning the architecture to the organization is
surprisingly hard
• It is not just a matter of throwing in a couple of
frameworks, you have to think things through
thoroughly before going this direction
In the end…
• Keep on educating yourself as more war stories
see the light of day
• Don’t just listen to one vendor’s version of the story,
all they care about is locking you in
• Have a rational thought process trump the hype,
however difficult that is - think for yourself rather
than following just the latest blogs and
technologies
And one more thing…
• We are not all Netflix or Amazon
• Just like we’re not all Twitter and Facebook with the
Big Data and Web Scale hypes…
• not all of us have billions of calls floating around
at any given day
• if you pretend you are, you will have all their
infrastructural problems to deal with for free and
even at a minor scale they are just as hard
Microservices for Mortals
Thanks!
@BertErtman

More Related Content

PDF
Made for Each Other: Microservices + PaaS
PPTX
DevOps, containers & microservices: Separating the hype from the reality
PDF
Goto Berlin - Migrating to Microservices (Fast Delivery)
PDF
Evolving to Cloud-Native - Nate Schutta (2/2)
PDF
Evolving to Cloud-Native - Nate Schutta (1/2)
PDF
Microservices Architectures: Become a Unicorn like Netflix, Twitter and Hailo
PPTX
Enabling application portability with the greatest of ease!
PPT
Cloud native
Made for Each Other: Microservices + PaaS
DevOps, containers & microservices: Separating the hype from the reality
Goto Berlin - Migrating to Microservices (Fast Delivery)
Evolving to Cloud-Native - Nate Schutta (2/2)
Evolving to Cloud-Native - Nate Schutta (1/2)
Microservices Architectures: Become a Unicorn like Netflix, Twitter and Hailo
Enabling application portability with the greatest of ease!
Cloud native

What's hot (20)

PDF
The new stack isn’t a stack: Fragmentation and terraforming 
the service layer
PPTX
The Cloud Native Journey with Simon Elisha
PPTX
building microservices
PDF
Software Architecture Conference - Monitoring Microservices - A Challenge
PPTX
The Developer is the New CIO: How Vendors Adapt to the Changing Landscape
PDF
Introduction to Cloud Native Computing
PDF
Microservice architecture
PDF
Fast Delivery DevOps Israel
PPTX
Driving Enterprise Architecture Redesign: Cloud-Native Platforms, APIs, and D...
PDF
Building Modern Applications Using APIs, Microservices and Chatbots
PDF
Who's Who in Container Land
PDF
Why Microservice
PDF
devops, platforms and devops platforms
PDF
Cloud Native DevOps
PDF
Communication Operations: Lift off with Docker! - Jesse White
PDF
Cloud Native Architecture Patterns Tutorial
PPTX
DockerCon 2017 - General Session Day 2 - Ben Golub
PDF
Microservice Scars - Alt.net 2hr
PDF
Cloud Foundry CEO Sam Ramji 2015 OSCON Keynote
PDF
Are We Really Cloud-Native?
The new stack isn’t a stack: Fragmentation and terraforming 
the service layer
The Cloud Native Journey with Simon Elisha
building microservices
Software Architecture Conference - Monitoring Microservices - A Challenge
The Developer is the New CIO: How Vendors Adapt to the Changing Landscape
Introduction to Cloud Native Computing
Microservice architecture
Fast Delivery DevOps Israel
Driving Enterprise Architecture Redesign: Cloud-Native Platforms, APIs, and D...
Building Modern Applications Using APIs, Microservices and Chatbots
Who's Who in Container Land
Why Microservice
devops, platforms and devops platforms
Cloud Native DevOps
Communication Operations: Lift off with Docker! - Jesse White
Cloud Native Architecture Patterns Tutorial
DockerCon 2017 - General Session Day 2 - Ben Golub
Microservice Scars - Alt.net 2hr
Cloud Foundry CEO Sam Ramji 2015 OSCON Keynote
Are We Really Cloud-Native?
Ad

Similar to Microservices for Mortals (20)

PDF
Microservices for Mortals by Bert Ertman at Codemotion Dubai
PDF
Building microservices on azure
PDF
Merging micrservices architecture with SOA Practices
PDF
170215 msa intro
PPTX
Think Small To Go Big - Introduction To Microservices
PPTX
The "Why", "What" & "How" of Microservices - short version
PPTX
Microservices why?
PPTX
Micro Services Architecture
PDF
20141210 - Microservice Container
PDF
Microservices Gone Wrong!
PPTX
Microservice intro
PDF
A tale of two microservices
ODP
Monolithic to Microservices Architecture - STM 6
PPTX
An introduction to Microservices
PPTX
Microservices: Lessons from the Trenches
PPTX
Pragmatic Microservices
PPT
Merging microservices architecture with SOA practices
PPTX
Microservices
PDF
Microservices for Application Modernisation
PPTX
From Monolithic applications to Microservices
Microservices for Mortals by Bert Ertman at Codemotion Dubai
Building microservices on azure
Merging micrservices architecture with SOA Practices
170215 msa intro
Think Small To Go Big - Introduction To Microservices
The "Why", "What" & "How" of Microservices - short version
Microservices why?
Micro Services Architecture
20141210 - Microservice Container
Microservices Gone Wrong!
Microservice intro
A tale of two microservices
Monolithic to Microservices Architecture - STM 6
An introduction to Microservices
Microservices: Lessons from the Trenches
Pragmatic Microservices
Merging microservices architecture with SOA practices
Microservices
Microservices for Application Modernisation
From Monolithic applications to Microservices
Ad

More from Bert Ertman (6)

PDF
Serverless - The Future of the Cloud?!
PDF
VJUG - Building Modular Java Applications in the Cloud Age
PPT
Migrating from Spring Applications to Java EE 6 [CHINESE VERSION]
PDF
Building Modular Cloud Applications in Java - Lessons Learned
PDF
Modular Java EE in the Cloud
PDF
JavaOne 2011: Migrating Spring Applications to Java EE 6
Serverless - The Future of the Cloud?!
VJUG - Building Modular Java Applications in the Cloud Age
Migrating from Spring Applications to Java EE 6 [CHINESE VERSION]
Building Modular Cloud Applications in Java - Lessons Learned
Modular Java EE in the Cloud
JavaOne 2011: Migrating Spring Applications to Java EE 6

Recently uploaded (20)

PPTX
Cybersecurity-and-Fraud-Protecting-Your-Digital-Life.pptx
PDF
AI Guide for Business Growth - Arna Softech
PPTX
R-Studio Crack Free Download 2025 Latest
PPTX
Viber For Windows 25.7.1 Crack + Serial Keygen
PDF
E-Commerce Website Development Companyin india
PDF
Introduction to Ragic - #1 No Code Tool For Digitalizing Your Business Proces...
PDF
Website Design & Development_ Professional Web Design Services.pdf
PDF
Understanding the Need for Systemic Change in Open Source Through Intersectio...
PDF
Practical Indispensable Project Management Tips for Delivering Successful Exp...
PDF
BoxLang Dynamic AWS Lambda - Japan Edition
PDF
infoteam HELLAS company profile 2025 presentation
PDF
AI-Powered Fuzz Testing: The Future of QA
PPTX
Lecture 5 Software Requirement Engineering
PDF
MiniTool Power Data Recovery 12.6 Crack + Portable (Latest Version 2025)
PPTX
Bandicam Screen Recorder 8.2.1 Build 2529 Crack
PDF
What Makes a Great Data Visualization Consulting Service.pdf
PPTX
hospital managemt ,san.dckldnklcdnkdnkdnjadnjdjn
PPTX
HackYourBrain__UtrechtJUG__11092025.pptx
PPTX
Plex Media Server 1.28.2.6151 With Crac5 2022 Free .
PDF
Guide to Food Delivery App Development.pdf
Cybersecurity-and-Fraud-Protecting-Your-Digital-Life.pptx
AI Guide for Business Growth - Arna Softech
R-Studio Crack Free Download 2025 Latest
Viber For Windows 25.7.1 Crack + Serial Keygen
E-Commerce Website Development Companyin india
Introduction to Ragic - #1 No Code Tool For Digitalizing Your Business Proces...
Website Design & Development_ Professional Web Design Services.pdf
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Practical Indispensable Project Management Tips for Delivering Successful Exp...
BoxLang Dynamic AWS Lambda - Japan Edition
infoteam HELLAS company profile 2025 presentation
AI-Powered Fuzz Testing: The Future of QA
Lecture 5 Software Requirement Engineering
MiniTool Power Data Recovery 12.6 Crack + Portable (Latest Version 2025)
Bandicam Screen Recorder 8.2.1 Build 2529 Crack
What Makes a Great Data Visualization Consulting Service.pdf
hospital managemt ,san.dckldnklcdnkdnkdnjadnjdjn
HackYourBrain__UtrechtJUG__11092025.pptx
Plex Media Server 1.28.2.6151 With Crac5 2022 Free .
Guide to Food Delivery App Development.pdf

Microservices for Mortals

  • 2. • Fellow at Luminis • Background in all things Java since 1995 • Java Champion, JavaOne Rockstar Speaker, and a Duke’s Choice Award Winner • Involved in architecting and implementing dozens of large scale systems over the past 20 years or so • Book author for O’Reilly, speaker at many conferences About me
  • 8. What if I’m allergic to Italian food? Can I still do Microservices?
  • 9. Where did it come from? • People have been doing AJAX, NoSQL, SOA, etc before they even got a name • Microservices style architectures are a response to adjust software architecture to an ever-evolving spectrum. It addresses Business Agility through technology: • Usage of cloud-based infrastructure and services • DevOps • The need to scale up the number of people/teams • Client-side revolution both in technologies and devices
  • 11. Microservices are like SOA, but only the good parts
  • 12. What happened to SOA? • SOA quickly turned into the rape victim of a vendor infested lock-in massacre, excessively complicating all good advice into giant overpriced hairballs sold as fake middleware, ESBs, and appliances.
  • 16. Which pill do you take?
  • 17. blue pill world • Blissful ignorance • Hey, since everyone and their mother seems to be tweeting about this microservices thing, it must be cool, right? • Heck, even Martin Fowler is blogging about it. Now it’s definitely mainstream • Dude, it’s on the freakin’ Technology Radar! • Btw, this seems to be a killer way to introduce Node.js to my customer, yeah!
  • 18. Which pill do you take?
  • 19. red pill world • Painful truth of reality • Where do we defy the laws of (IT) physics? • This thing is about distributed computing which after all these years is still very hard to do! • This thing is about asynchronous programming models, which are hard to grasp • It has a number of other gotcha’s which I will go into…
  • 20. There is no spoon • Forget synchronous programming models • Forget a single Enterprise Domain Model • Forget ACID transactions • Forget Relational Integrity
  • 21. Welcome to red pill world
  • 24. About Monoliths • The word ‘monolith’ has a negative connotation • Not all non-microservices apps 
 are bad applications • What do you call an application that everyone wants to interface with but was not designed to do?
  • 26. When monoliths are bad • But… such systems can end up as monoliths with all the negative connotations to it as they: • Start to build up massive technical debt • Become hard to change without breaking stuff • QA and test cycles take lots of time (expensive) • When heavy internal coupling starts to take over control of the application • Become married to the underlying technical stack
  • 27. Monolith to Microservices approach • As was recently suggested by Martin Fowler, et al. the Monolith-First approach is a way of “strangling off services from a monolithic application”. • This makes great theory, but is pretty hard to do in practice • Often times building blocks on the inside of an application are not suitable as building blocks outside of an application
  • 28. Monolith to Microservices Struggles • Initial Investment • Data Strategy • Synchronous 
 vs Asynchronous • Conway’s Law • Re-use Traps • Dealing with Failure
  • 29. Initial Investment • So-called “Outer Architecture” • Service Discovery • Logging • Metrics and Analytics • DevOps process in-place • Solid CI/CD practices • Impact on testing strategy
  • 31. Data Strategy • Don’t have multiple microservices share the same database model and perform updates on it • this results in unwanted coupling • Separate at least read/write access if you must • Better: separate data stores for each service
  • 32. Data Strategy • Q: What if I have common data? • A: Either perform a call to another service or just copy the data • Q: How do I deal with referential integrity? • A: Move it up in the application layer
  • 33. Synchronous vs Asynchronous • Within the monolith, most communication will be synchronous • Your interfaces have been designed with synchronous, in-process, interactions in mind • May be chatty (fine-grained) • Rethinking interaction patterns is essential • Rethink the communication protocol as well
  • 34. Service Communication • Standardize on a common communication protocol • Oftentimes people choose REST, but there are others • protobuf, thrift, zeromq, mqtt, … • Is REST fast enough to do massive fan-out? • Maybe have two: synchronous and asynchronous
  • 35. Avoid re-use traps • Q: What is the best strategy for reusing common functionality between microservices? • A: Copy it in the beginning of the project if you must. Never look back. Microservices are designed to be TOTALLY independent of each other, remember?
  • 37. Conway’s Law So here is the obligatory reference to Conway’s Law: “Organizations which design systems ... are 
 constrained to produce designs which are copies of 
 the communication structures of these organizations" —M. Conway 1968
  • 38. What it actually means • Make sure the organization is compatible with the software architecture • If your (microservices) architecture does not reflect the way your organization is structured, don’t even bother going that way! • It also means that your team should be cross- functional. Everyone you need to build, maintain and get it into production must be part of the team
  • 45. Design for Failure • Dependent services may be unavailable or too slow to respond • Minimize human intervention • failure happens all the time, so it shouldn’t be a big deal • fail rather sooner than later (prevent cascading) • Horizontal clustering to the rescue (multiple services) • Resilience Patterns to the rescue • CircuitBreaker, Bulkhead, Caching, Retry, Messaging, etc • This is complicated stuff. It is not just about throwing Hystrix or some other library in
  • 46. Some take-aways • The essence of Microservices is about structuring systems differently • It’s about Modularity • It’s about Separation of Concerns • It’s about Single Responsibility Principle • It addresses Business Agility through technology • Those are not bad things!
  • 47. However… • Everything comes at a price • Aligning the architecture to the organization is surprisingly hard • It is not just a matter of throwing in a couple of frameworks, you have to think things through thoroughly before going this direction
  • 48. In the end… • Keep on educating yourself as more war stories see the light of day • Don’t just listen to one vendor’s version of the story, all they care about is locking you in • Have a rational thought process trump the hype, however difficult that is - think for yourself rather than following just the latest blogs and technologies
  • 49. And one more thing… • We are not all Netflix or Amazon • Just like we’re not all Twitter and Facebook with the Big Data and Web Scale hypes… • not all of us have billions of calls floating around at any given day • if you pretend you are, you will have all their infrastructural problems to deal with for free and even at a minor scale they are just as hard