Microservice experiences in 7 minutes
8 questions and our answers to microservices in a 100mio revenue
eCommerce business
1
Contact: stephan.schulze@project-a.com
2
1. What are major painpoints of microservices?
A microservice architecture is a distributed system.
2
There is:
● an isolated vertical infrastructure for each service
● no referential integrity across services
● no “shared memory” across services
● communication only via APIs
3
3
4
2. Micro vs. Macro?
rule of thumb: slice rather to large than to small
4
We sliced:
business
● Customer
● Order
● Payment
● Checkout
● Contentmanagement
● Products/Search
● Cart
● Calculation
● Search
infrastructure
● Rendering/Routing
● Logging
● Authentification
● E-Mails
● Pricing
● Stock
5
2. Micro vs. Macro? Our architecture
5
R
o
u
ti
n
g
/r
e
n
d
e
ri
n
g
S1
S5
S2
S6
S4
S7
S9
S3
S8
6
3. Should I secure my service communication?
You must!
6
We use:
- encrypted communication between services
- token based authorization for services and users
- role based access system for services and users
7
4. What should my services return?
In general: everything you want!
7
We return:
● pure JSON
or
● full rendered HTML wrapped in JSON with metainformation
(Status Codes, Messages, Redirects, …)
The question is: Who will merge everything together?
8
5. What about sessions?
Shared data in a distributed system?
8
Our approach:
The session
● is managed by the Routing/Rendering service
● is namespaced per service
● is transmitted to a service in the header
● can be updated by the service response
9
6. What about different service/api versions?
You will have different versions of services in production!
You will probably have the same service in different versions in
production!
9
Our approach:
● services are versioned
● APIs are versioned
● API version can be selected via Header
● APIs are documented via Swagger
10
7. What about scaling and performance?
The application must be built to be scalable!
The infrastructure must be built to be scalable!
10
Our approach:
● decided for docker (is a pain for developers on Mac)
● one kubernetes cluster per system
● running on a AWS infrastructure with terraform
● definition of performance budgets for services
11
8. What else have we learned?
● You need a really good team
● Take time to think and discuss before
● Question whether a microservice architecture is really the way to go
11
Thank you for your attention!
Contact: stephan.schulze@project-a.com
12

More Related Content

PPTX
Building a microservice architecture for a 100mio# revenue company
PDF
WSO2Con EU 2016: Identity Management – A Cornerstone for the Connected Enter...
PDF
Integration Solution Patterns
PPTX
From Monolith to Microservices using Amazon EC2 Container Service
PDF
Service mesh in Microservice World to Manage end to end service communications
PDF
[API World ] - Managing Asynchronous APIs
PDF
Delivering the Promise of SOA - Enterprise Integration Made Easy
PDF
[WSO2Con EU 2017] Microservices for Enterprises
Building a microservice architecture for a 100mio# revenue company
WSO2Con EU 2016: Identity Management – A Cornerstone for the Connected Enter...
Integration Solution Patterns
From Monolith to Microservices using Amazon EC2 Container Service
Service mesh in Microservice World to Manage end to end service communications
[API World ] - Managing Asynchronous APIs
Delivering the Promise of SOA - Enterprise Integration Made Easy
[WSO2Con EU 2017] Microservices for Enterprises

What's hot (20)

PPTX
Complex architectures for authentication and authorization on AWS
PDF
[WSO2Con EU 2017] Ballerina Connectors for Seamless Integration
PPTX
WEB API Gateway
PPTX
Microservices with .Net - NDC Sydney, 2016
PDF
[WSO2Con EU 2017] Cloud-Native API Management
PDF
Deep-dive into Microservice Outer Architecture
PDF
Keamanan Digital dan Privasi di Masa Pandemi-Taro Lay (Director-Kalama Cyber)
PPTX
Integrating microservices in the cloud
PPTX
How Cisco is Leveraging MuleSoft to Drive Continuous Innovation​ at Enterpris...
PDF
How to migrate an application in IBM APIc, and preserve its client credential
PPTX
Authentication and single sign on (sso)
PPTX
What is SSL/TLS, 1-way and 2-way SSL?
PDF
Microservices
PDF
#JaxLondon keynote: Developing applications with a microservice architecture
PDF
Microservices: an introduction
PPTX
Building Microservices with .NET (speaker Anton Vasilenko, Binary Studio)
PDF
Strong Customer Authentication - All Your Questions Answered
PDF
Istio as an Enabler for Migrating Monolithic Applications to Microservices v1.3
PPTX
Architecting Microservices in .Net
PPTX
Gateway/APIC security
Complex architectures for authentication and authorization on AWS
[WSO2Con EU 2017] Ballerina Connectors for Seamless Integration
WEB API Gateway
Microservices with .Net - NDC Sydney, 2016
[WSO2Con EU 2017] Cloud-Native API Management
Deep-dive into Microservice Outer Architecture
Keamanan Digital dan Privasi di Masa Pandemi-Taro Lay (Director-Kalama Cyber)
Integrating microservices in the cloud
How Cisco is Leveraging MuleSoft to Drive Continuous Innovation​ at Enterpris...
How to migrate an application in IBM APIc, and preserve its client credential
Authentication and single sign on (sso)
What is SSL/TLS, 1-way and 2-way SSL?
Microservices
#JaxLondon keynote: Developing applications with a microservice architecture
Microservices: an introduction
Building Microservices with .NET (speaker Anton Vasilenko, Binary Studio)
Strong Customer Authentication - All Your Questions Answered
Istio as an Enabler for Migrating Monolithic Applications to Microservices v1.3
Architecting Microservices in .Net
Gateway/APIC security
Ad

Viewers also liked (6)

PPT
4 hadoop for-the-disillusioned
PPT
Appistry Lightening Talk from CloudCamp Federal @ FOSE
PDF
Microservices Manchester: Lightning Talk - The Hidden Cost of Technology By J...
PPTX
Grokking microservices in 5 minutes
PDF
MuCon 2015 - Microservices in Integration Architecture
PDF
Integration Patterns and Anti-Patterns for Microservices Architectures
4 hadoop for-the-disillusioned
Appistry Lightening Talk from CloudCamp Federal @ FOSE
Microservices Manchester: Lightning Talk - The Hidden Cost of Technology By J...
Grokking microservices in 5 minutes
MuCon 2015 - Microservices in Integration Architecture
Integration Patterns and Anti-Patterns for Microservices Architectures
Ad

Similar to Lightening Talk @Symfony Conference 2016 (20)

PPTX
Microservices vs monolithics betabeers
PDF
Microservice - Intro and Discussion
PDF
Everything you want to know about microservices
PDF
Understanding Microservices
PDF
Microservices in Practice
PDF
Microservices Interview Questions and Answers pdf by ScholarHat
PDF
Building Microservices Software practics
PDF
Microservices - opportunities, dilemmas and problems
PDF
Microservices for java architects it-symposium-2015-09-15
PDF
APIDays 2018 - APIOps & Microservices - What is MICRO by the Way ?
PDF
Microservices for Java Architects (Madison-Milwaukee, April 28-9, 2015)
PDF
Microservices Interview Questions and Answers PDF By ScholarHat
PPTX
Microservices-101
PDF
Writing microservices in Java -- Chicago-2015-11-10
PDF
Microservices for java architects schamburg-2015-05-19
PPTX
Microservices
PDF
Writing microservices in java java one-2015-10-28
PDF
CMPE282_009994036_PROJECT_REPORT
PDF
Microservices Journey NYC
PDF
Microservices for java architects coders-conf-2015-05-15
Microservices vs monolithics betabeers
Microservice - Intro and Discussion
Everything you want to know about microservices
Understanding Microservices
Microservices in Practice
Microservices Interview Questions and Answers pdf by ScholarHat
Building Microservices Software practics
Microservices - opportunities, dilemmas and problems
Microservices for java architects it-symposium-2015-09-15
APIDays 2018 - APIOps & Microservices - What is MICRO by the Way ?
Microservices for Java Architects (Madison-Milwaukee, April 28-9, 2015)
Microservices Interview Questions and Answers PDF By ScholarHat
Microservices-101
Writing microservices in Java -- Chicago-2015-11-10
Microservices for java architects schamburg-2015-05-19
Microservices
Writing microservices in java java one-2015-10-28
CMPE282_009994036_PROJECT_REPORT
Microservices Journey NYC
Microservices for java architects coders-conf-2015-05-15

Recently uploaded (20)

PDF
AGENT SLOT TERPERCAYA INDONESIA – MAIN MUDAH, WD CEPAT, HANYA DI KANCA4D
PPTX
Concepts of Object Oriented Programming.
DOCX
Audio to Video AI Technology Revolutiona
PDF
JuanConnect E-Wallet Guide for new users.pdf
PPTX
Data Flows presentation hubspot crm.pptx
PPT
Expect The Impossiblesssssssssssssss.ppt
PPTX
Digital Project Mastery using Autodesk Docs Workshops
DOCX
MLS 113 Medical Parasitology (LECTURE).docx
PDF
Testing & QA Checklist for Magento to Shopify Migration Success.pdf
PPTX
Going_to_Greece presentation Greek mythology
PPTX
Dating App Development Cost: Factors, Features & Estimates
PPTX
Networking2-LECTURE2 this is our lessons
PDF
ilide.info-huawei-odn-solution-introduction-pdf-pr_a17152ead66ea2617ffbd01e8c...
PPTX
PORTFOLIO SAMPLE…….………………………………. …pptx
PDF
How Technology Shapes Our Information Age
PPTX
REE IN CARBONATITE EEPOSIT AND INCLUDE CASE STUDY ON AMBADUNGAR
PDF
Information Technology practical assignment
PPTX
DAY 1 - Introduction to Git.pptxttttttttttttttttttttttttttttt
PPTX
日本横滨国立大学毕业证书文凭定制YNU成绩单硕士文凭学历认证
PPTX
Introduction to networking local area networking
AGENT SLOT TERPERCAYA INDONESIA – MAIN MUDAH, WD CEPAT, HANYA DI KANCA4D
Concepts of Object Oriented Programming.
Audio to Video AI Technology Revolutiona
JuanConnect E-Wallet Guide for new users.pdf
Data Flows presentation hubspot crm.pptx
Expect The Impossiblesssssssssssssss.ppt
Digital Project Mastery using Autodesk Docs Workshops
MLS 113 Medical Parasitology (LECTURE).docx
Testing & QA Checklist for Magento to Shopify Migration Success.pdf
Going_to_Greece presentation Greek mythology
Dating App Development Cost: Factors, Features & Estimates
Networking2-LECTURE2 this is our lessons
ilide.info-huawei-odn-solution-introduction-pdf-pr_a17152ead66ea2617ffbd01e8c...
PORTFOLIO SAMPLE…….………………………………. …pptx
How Technology Shapes Our Information Age
REE IN CARBONATITE EEPOSIT AND INCLUDE CASE STUDY ON AMBADUNGAR
Information Technology practical assignment
DAY 1 - Introduction to Git.pptxttttttttttttttttttttttttttttt
日本横滨国立大学毕业证书文凭定制YNU成绩单硕士文凭学历认证
Introduction to networking local area networking

Lightening Talk @Symfony Conference 2016

  • 1. Microservice experiences in 7 minutes 8 questions and our answers to microservices in a 100mio revenue eCommerce business 1 Contact: [email protected]
  • 2. 2 1. What are major painpoints of microservices? A microservice architecture is a distributed system. 2 There is: ● an isolated vertical infrastructure for each service ● no referential integrity across services ● no “shared memory” across services ● communication only via APIs
  • 3. 3 3
  • 4. 4 2. Micro vs. Macro? rule of thumb: slice rather to large than to small 4 We sliced: business ● Customer ● Order ● Payment ● Checkout ● Contentmanagement ● Products/Search ● Cart ● Calculation ● Search infrastructure ● Rendering/Routing ● Logging ● Authentification ● E-Mails ● Pricing ● Stock
  • 5. 5 2. Micro vs. Macro? Our architecture 5 R o u ti n g /r e n d e ri n g S1 S5 S2 S6 S4 S7 S9 S3 S8
  • 6. 6 3. Should I secure my service communication? You must! 6 We use: - encrypted communication between services - token based authorization for services and users - role based access system for services and users
  • 7. 7 4. What should my services return? In general: everything you want! 7 We return: ● pure JSON or ● full rendered HTML wrapped in JSON with metainformation (Status Codes, Messages, Redirects, …) The question is: Who will merge everything together?
  • 8. 8 5. What about sessions? Shared data in a distributed system? 8 Our approach: The session ● is managed by the Routing/Rendering service ● is namespaced per service ● is transmitted to a service in the header ● can be updated by the service response
  • 9. 9 6. What about different service/api versions? You will have different versions of services in production! You will probably have the same service in different versions in production! 9 Our approach: ● services are versioned ● APIs are versioned ● API version can be selected via Header ● APIs are documented via Swagger
  • 10. 10 7. What about scaling and performance? The application must be built to be scalable! The infrastructure must be built to be scalable! 10 Our approach: ● decided for docker (is a pain for developers on Mac) ● one kubernetes cluster per system ● running on a AWS infrastructure with terraform ● definition of performance budgets for services
  • 11. 11 8. What else have we learned? ● You need a really good team ● Take time to think and discuss before ● Question whether a microservice architecture is really the way to go 11
  • 12. Thank you for your attention! Contact: [email protected] 12