Observable
Microservices
By
Kayalvizhi K
27,28 June 2020
Kayalvizhi
Principal Architect
Observable Microservices
Make Monitoring simple
Monolithic Apps
Payment
Module
Orders
Module
Products
Module
Inventory
Module
Web UI
Microservices
Enterprise Message Bus
Products
Service
Orders
Service
Inventory
Service
Payment
Service
UI Application
API GW
The Transformation
Comes with a cost !
An incident...
Where to start with?
What to search for?
Enterprise Message Bus
Products
Service
Orders
Service
Payment
Service
UI Application
API GW
Inventory
Service
Diagnose
#OrderService-dd-mm-yyyy.log
05:05:08 2020-02-16
05:05:08
DEB
UG
876
54
GET
/orderservice/orders/987765?abc=xyz&qwe=def
5
0
0
1
7
Apache-HttpClient/4.5.2(Java/1.8.0-151)
05:05:08 2020-02-16
05:05:08
DEB
UG
876
54
GET
/orderservice/orders/987765?abc=xyz&qwe=def
5
0
0
1
7
Apache-HttpClient/4.5.2(Java/1.8.0-151)
#InventoryService-dd-mm-yyyy.log
05:05:08 2020-02-16
05:05:08
DEB
UG
876
54
GET
/orderservice/orders/987765?abc=xyz&qwe=def
5
0
0
1
7
Apache-HttpClient/4.5.2(Java/1.8.0-151)
05:05:08 2020-02-16
05:05:08
DEB
UG
876
54
GET
/orderservice/orders/987765?abc=xyz&qwe=def
5
0
0
1
7
Apache-HttpClient/4.5.2(Java/1.8.0-151)
Log analysis
#OrderService-dd-mm-yyyy.log
05:05:08 2020-02-16
05:05:08
DEB
UG
876
54
GET
/orderservice/orders/987765?abc=xyz&qwe=def
5
0
0
1
7
Apache-HttpClient/4.5.2(Java/1.8.0-151)
05:05:08 2020-02-16
05:05:08
DEB
UG
876
54
GET
/orderservice/orders/987765?abc=xyz&qwe=def
5
0
0
1
7
Apache-HttpClient/4.5.2(Java/1.8.0-151)
#OrderService-dd-mm-yyyy.log
05:05:08 2020-02-16
05:05:08
DEB
UG
876
54
GET
/orderservice/orders/987765?abc=xyz&qwe=def
5
0
0
1
7
Apache-HttpClient/4.5.2(Java/1.8.0-151)
05:05:08 2020-02-16
05:05:08
DEB
UG
876
54
GET
/orderservice/orders/987765?abc=xyz&qwe=def
5
0
0
1
7
Apache-HttpClient/4.5.2(Java/1.8.0-151)
#OrderService-dd-mm-yyyy.log
05:05:08 2020-02-16
05:05:08
DEB
UG
876
54
GET
/orderservice/orders/987765?abc=xyz&qwe=def
5
0
0
1
7
Apache-HttpClient/4.5.2(Java/1.8.0-151)
05:05:08 2020-02-16
05:05:08
DEB
UG
876
54
GET
/orderservice/orders/987765?abc=xyz&qwe=def
5
0
0
1
7
Apache-HttpClient/4.5.2(Java/1.8.0-151)
05:05:08 2020-02-16 05:05:08 DEBUG 87654 GET /orderservice/orders/987765?abc=xyz&qwe=def
500 17 Apache-HttpClient/4.5.2(Java/1.8.0-151)
Timestamp Log-Level Process-Id Requested URL
HTTP Code Response Size User Agent
The Scope
It is out-of-scope!
“
Order
Invoice
Inventory Payment
MailingShipping
PayU PayTm GPay
BHIM PayPalUPI
MktPlace Webhook PUSH Gateway
What I maintain
What I am responsible for
Is it Possible
Rely only on Logs
Attach Debugger to whole
Production Env
Observability
Speed Limiter
Load Balancer
Request
Payload
Load Balancer
app1
instance#1
app1
instance#2
Request
Payload
app1
instance#3
Health check pings
Auto Scaling
Request
Payload
app1
instance#1
app1
instance#2
Request
Payload
Load Balancer
Utilization
metrics
Threshold
>65%
Monitor
Desired capacity
app1
instance#3
app1
instance#4
app1
instance#5
Scale-out max capacity
Utilisation
66%
Is it APM ?
APM
HOW is the application performing...
about bottlenecks, access speeds, downtime, connectivity etc
Telemetry
OBSERVABILITY
WHY is failing...
how telemetry is used to diagnose quickly and fix the problem in context
Not a telemetry
The combo...
LOG
Structured
Logging
APM
Application
Performance
Monitoring
TRACING
Tracing requests
across
microservices
From data...
Distributed TracingMonitor Vitals Event Driven
RetryFail Fast & Fallback
Monitor Vitals
1
AlertManager
Ignore Alert?
Shipping
Service
Order
Service
Inventory
Service
Payment
Service
Mailing
Service
...
...
actuator
Graphing
Dashboard
APM
Tracing
Invento
ry Order
Invoice
Event Bus
Invoice
Service
Shipping
Service
Payment
Service
PayU
PayTm
GPay
Mailing
Service
Order-UI
Order
Service
UI
2
BooksInventoryService
Payment Service
Not Event
Driven
API Driven
OrderServiceAppln
OrderService
Order Item1
REST API: Get Stock Count(bookId)2
RESTAPI
Pay(OrderDetails)
3
PaymentResponse
5
Order
Confirmation
6
4 PayUsingGW(Amount)
BooksInventoryService
REST API: Get Stock Count(bookId)
RESTAPI
Pay(OrderDetails)
Please try
later !
Order Item
Payment Service
OrderServiceAppln
OrderService
1
2
3
4
X
Intermittent
Failure
Not Event
Driven
API Driven
BooksInventoryService
REST API: Get Stock Count(bookId)
Order Item
Payment Service
Event Driven
OrderServiceAppln
OrderService
1
2
Order
Confirmation
8
5 PayUsingGW(Amount)
Place Order3
4 ORDERS
PAYMENTS6
7
Payment_
Processed
3
BooksInventoryService
REST API: Get Stock Count(bookId)
Order
Confirmation
Order Item
Payment Service
Event Driven
OrderServiceAppln
OrderService
1
2
5
8
PayUsingGW(Amount)
Place Order3
4 ORDERS
6 PAYMENTS
7
Payment_
Processed
Storage#1
Storage#2
X
Intermittent
Failure?
3
Fail Fast &
Fallback
BooksInventoryService
OrderService
Get Similar Items(item)
Get Similar Items(item)
BooksInventoryService
OrderService
Get Similar Items(item)
Get Similar Items(item)
4
Circuit Breaker
State
Metrics
OrderService
BooksInventoryService
Fail Fast &
Fallback
Circuit Breaker
State
Metrics
BooksInventoryService
OrderService
cache
4
Retry
BooksInventoryService
Retry Thrice, at Fixed Interval
X
Delay - 2s
X
X
Delay - 2s
X
Delay - 2s
OrderServiceService
Load Cache for Similar Items
5
cache
Retry
BooksInventoryService
Load Cache for Similar Items
X
Delay - 2s
X
Delay - 4s
(= 2 X 2 ^ 1)
X
Delay - 8s
(= 2 X 2 ^ 2)
Retry Thrice, with Exponential Backoff
cache
5
with e^ backoff
OrderServiceService
From data...
Hence Simplified !
Distributed TracingMonitor Vitals
RetryFail Fast & Fallback
Event Driven
DEMO
Observable
Microservices...
Effective Logging & Tracing
Monitor only Vital
Telemetry
Establish Observability as
Coding Culture
Continual Investment in
Observability
When an incident occurs,
Software engineers need not be
on call for autorecoverables issues
in their services
Engineers need not open 6
different tabs to look at most of
the issues as they are self-healed/
redirected by the system
Observable
Microservices...
Benefits
Software Engineers & Site Reliability Engineers need fault-
tolerant observable microservices to make their Monitoring
& Debugging simple
Observable
Microservices...
Conclusion
Doppa2020   observable microservices make monitoring simple
Thank
you
Kayalvizhi Kandasamy

More Related Content

PPTX
Digital Data Exchange for Tally
PPTX
Hacking with PayPal
PPTX
Subscribed 2017: Reporting APIs
PPTX
Digital Data Exchange for Mobile Distribution Network
PPTX
AccXchange for CA Firms
PPTX
Thinking Serverless (AWS re:Invent 2019 chalk talk SVS213). Solutions slides.
PDF
Top 20 QuickBooks Add-Ons You Should Make Use Of
PPTX
Managing global ecommerce at hyperscale with Azure
Digital Data Exchange for Tally
Hacking with PayPal
Subscribed 2017: Reporting APIs
Digital Data Exchange for Mobile Distribution Network
AccXchange for CA Firms
Thinking Serverless (AWS re:Invent 2019 chalk talk SVS213). Solutions slides.
Top 20 QuickBooks Add-Ons You Should Make Use Of
Managing global ecommerce at hyperscale with Azure

What's hot (19)

PPTX
Building upon existing infrastructure for Mobile Applications with WSO2
PPTX
API Product Management and Strategy
PPSX
Make A Billing Through Decisive Billx Software
PPTX
Event driven Microservices Webinar
PPTX
Integrating, exposing and managing distributed data with RESTful APIs and op...
PDF
API Thinking - How to Design APIs Through Systems Design
PPT
What you need to know about quickbooks enterprise 2016
PPTX
apidays LIVE Paris 2021 - Event driven design and serverless by Omid Eidivand...
PDF
Deep dive: Monetize your API Programs
PDF
OzLINK and SPS Commerce
PPTX
Using APIs to Power Social Impact
PPTX
Sdk day2
PDF
Business Challenges Solved by APIs: What Every Executive Should Know
PPTX
APIdays Zurich 2019 - The experience of BBVA API Market David Ramos Lehnhoff,...
PPTX
APIdays Singapore 2019 - Business of APIs: From Integration to Monetisation, ...
PDF
APIdays Zurich 2019 - Boosting the Digital Transformation at UBS with APIs Ro...
PDF
BSFI Technology Offerings by Value Innovation Labs
PPTX
Moving Toward a Modular Enterprise - All About the API Conference 2016
PPTX
Clickslide pitchdeck
Building upon existing infrastructure for Mobile Applications with WSO2
API Product Management and Strategy
Make A Billing Through Decisive Billx Software
Event driven Microservices Webinar
Integrating, exposing and managing distributed data with RESTful APIs and op...
API Thinking - How to Design APIs Through Systems Design
What you need to know about quickbooks enterprise 2016
apidays LIVE Paris 2021 - Event driven design and serverless by Omid Eidivand...
Deep dive: Monetize your API Programs
OzLINK and SPS Commerce
Using APIs to Power Social Impact
Sdk day2
Business Challenges Solved by APIs: What Every Executive Should Know
APIdays Zurich 2019 - The experience of BBVA API Market David Ramos Lehnhoff,...
APIdays Singapore 2019 - Business of APIs: From Integration to Monetisation, ...
APIdays Zurich 2019 - Boosting the Digital Transformation at UBS with APIs Ro...
BSFI Technology Offerings by Value Innovation Labs
Moving Toward a Modular Enterprise - All About the API Conference 2016
Clickslide pitchdeck
Ad

Similar to Doppa2020 observable microservices make monitoring simple (20)

PDF
Building Event Driven (Micro)services with Apache Kafka
PDF
Building event-driven Microservices with Kafka Ecosystem
PDF
API-first Integration for Microservices
PDF
Workflow Engines & Event Streaming Brokers - Can They Work Together?
PDF
Workflow Engines & Event Streaming Brokers - Can they work together? [Current...
PDF
Architecting eCommerce APIs - Gluecon 13
PDF
Events, Picos, and Microservices
PPTX
Event mesh api meetup AsyncAPI Singapore
PPTX
Public v1 real world example of azure functions serverless conf london 2016
PDF
Leveraging Microservice Architectures & Event-Driven Systems for Global APIs
PDF
Microservices with Kafka Ecosystem
PDF
Lectura 2.4 is your api naked - 10 roadmap considerations
PDF
Resilient Event Driven Systems With Kafka
PDF
Building event driven serverless apps by Danilo Poccia at Codemotion Dubai
PPT
Bbva workshop
PDF
Quick Commerce Data APIs: Instamart API, Zepto API, Blinkit API
PDF
EDA Meets Data Engineering – What's the Big Deal?
PPT
Bierschenk Senior Project
PDF
Building Event-Driven Serverless Applications - AWS - Danilo Poccia
PPT
Payment System, based on Authorize.net
Building Event Driven (Micro)services with Apache Kafka
Building event-driven Microservices with Kafka Ecosystem
API-first Integration for Microservices
Workflow Engines & Event Streaming Brokers - Can They Work Together?
Workflow Engines & Event Streaming Brokers - Can they work together? [Current...
Architecting eCommerce APIs - Gluecon 13
Events, Picos, and Microservices
Event mesh api meetup AsyncAPI Singapore
Public v1 real world example of azure functions serverless conf london 2016
Leveraging Microservice Architectures & Event-Driven Systems for Global APIs
Microservices with Kafka Ecosystem
Lectura 2.4 is your api naked - 10 roadmap considerations
Resilient Event Driven Systems With Kafka
Building event driven serverless apps by Danilo Poccia at Codemotion Dubai
Bbva workshop
Quick Commerce Data APIs: Instamart API, Zepto API, Blinkit API
EDA Meets Data Engineering – What's the Big Deal?
Bierschenk Senior Project
Building Event-Driven Serverless Applications - AWS - Danilo Poccia
Payment System, based on Authorize.net
Ad

Recently uploaded (20)

PDF
6.-propertise of noble gases, uses and isolation in noble gases
PPTX
Knowledge Knockout ( General Knowledge Quiz )
PPTX
3RD-Q 2022_EMPLOYEE RELATION - Copy.pptx
PDF
Yusen Logistics Group Sustainability Report 2024.pdf
PDF
IKS PPT.....................................
PPTX
INDIGENOUS-LANGUAGES-AND-LITERATURE.pptx
DOC
EVC毕业证学历认证,北密歇根大学毕业证留学硕士毕业证
PPTX
Lesson-7-Gas. -Exchange_074636.pptx
PPTX
Literatura en Star Wars (Legends y Canon)
PDF
Public speaking for kids in India - LearnifyU
PPTX
CAPE CARIBBEAN STUDIES- Integration-1.pptx
PPTX
HOW TO HANDLE THE STAGE FOR ACADEMIA AND OTHERS.pptx
PPTX
FINAL TEST 3C_OCTAVIA RAMADHANI SANTOSO-1.pptx
PPTX
Kompem Part Untuk MK Komunikasi Pembangunan 5.pptx
DOCX
Action plan to easily understanding okey
PPTX
CASEWORK Power Point Presentation - pointers
PDF
Unnecessary information is required for the
PDF
COLEAD A2F approach and Theory of Change
PPT
Lessons from Presentation Zen_ how to craft your story visually
PDF
Module 7 guard mounting of security pers
6.-propertise of noble gases, uses and isolation in noble gases
Knowledge Knockout ( General Knowledge Quiz )
3RD-Q 2022_EMPLOYEE RELATION - Copy.pptx
Yusen Logistics Group Sustainability Report 2024.pdf
IKS PPT.....................................
INDIGENOUS-LANGUAGES-AND-LITERATURE.pptx
EVC毕业证学历认证,北密歇根大学毕业证留学硕士毕业证
Lesson-7-Gas. -Exchange_074636.pptx
Literatura en Star Wars (Legends y Canon)
Public speaking for kids in India - LearnifyU
CAPE CARIBBEAN STUDIES- Integration-1.pptx
HOW TO HANDLE THE STAGE FOR ACADEMIA AND OTHERS.pptx
FINAL TEST 3C_OCTAVIA RAMADHANI SANTOSO-1.pptx
Kompem Part Untuk MK Komunikasi Pembangunan 5.pptx
Action plan to easily understanding okey
CASEWORK Power Point Presentation - pointers
Unnecessary information is required for the
COLEAD A2F approach and Theory of Change
Lessons from Presentation Zen_ how to craft your story visually
Module 7 guard mounting of security pers

Doppa2020 observable microservices make monitoring simple