Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Monolith to Event-Driven Microservices
Search
Eko Kurniawan Khannedy
August 06, 2019
Technology
280
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Monolith to Event-Driven Microservices
Software Architecture Conference
Eko Kurniawan Khannedy
August 06, 2019
More Decks by Eko Kurniawan Khannedy
See All by Eko Kurniawan Khannedy
Refactoring
khannedy
0
370
Multi-Datacenter Kafka at Blibli.com
khannedy
2
1.6k
QA Tools - Research and Development
khannedy
0
310
Reactive Puzzle
khannedy
0
220
Event-Driven Architecture
khannedy
1
2.1k
Resilience Engineering with Hystrix and Spring
khannedy
1
590
Mocking for Unit Test using Mockito
khannedy
1
360
Centralized Configuration using Consul and Spring Cloud
khannedy
2
730
Validation Best Practice
khannedy
2
1.3k
Other Decks in Technology
See All in Technology
AIレビューはどこまで任せられるのか?自動化と人が背負うレビューの境界
sansantech
PRO
2
520
Baseline対応のDOMの型定義を作った
uhyo
3
730
Claude Codeとハーネスについて考えてみる
oikon48
18
9.2k
最適な自走を最小限の支援で — M&Aで拡大する組織で少人数SREが挑んだ1年 / SRE NEXT 2026
genda
0
1k
AIを駆使した OSS脆弱性調査のすゝめ
saku0512
0
100
SRE Lounge Hiroshimaへの招待
grimoh
0
620
AI駆動開発におけるQAエンジニアの役割事例 〜AI駆動開発の現場から〜
kobayashiyorimitsu
0
480
デジタル・デザイン構想 by Sayaka Ishizuka
y150saya
0
210
プロダクトだけじゃない、社内プロセスにおける自動化・省力化ノススメ
kakehashi
PRO
1
3.6k
AWS Summit の片隅で、体育座りしながらコミュニティがにぎわう理由を考えた
k_adachi_01
2
370
ポストモーテム! DDoSからサイトは守れた。 でもビジネスは守れなかった。
bengo4com
0
2.7k
Making sense of Google’s agentic dev tools
glaforge
1
150
Featured
See All Featured
Claude Code のすすめ
schroneko
67
230k
Rails Girls Zürich Keynote
gr2m
96
14k
Building AI with AI
inesmontani
PRO
1
1.1k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
1.9k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.1k
Prompt Engineering for Job Search
mfonobong
0
370
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
490
Docker and Python
trallard
47
3.9k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.8k
Heart Work Chapter 1 - Part 1
lfama
PRO
8
36k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.3k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.2k
Transcript
Monolith to Event-Driven Microservices Eko Kurniawan Khannedy
Eko Kurniawan • Senior Principal R&D Engineer at Blibli.com •
10 Years of Experience in IT Industry • Software Architect behind: ◦ Blibli.com New Backend System ◦ Blipay
Agenda • Microservices • Event-Driven Architecture • Hands-On using Java
Microservices
Monolith vs Microservices Application Monolith Microservices
Monolith vs Microservices Deployment Monolith Microservices
Characteristic of Microservices 1. Componentization via Services 2. Organized around
Business Capabilities 3. Products not Projects 4. Smart endpoints and dumb pipes 5. Decentralized Governance 6. Decentralized Data Management 7. Infrastructure Automation 8. Design for failure 9. Evolutionary Design https://martinfowler.com/articles/microservices.html
Componentization via Services Library Service Product Library Shipping Library Product
Service Shipping Service
Organized around Business Capabilities Merchant Product Shipping
Decentralized Data Management MySQL Mongo Elasticsearch
Continuous Delivery Infrastructure Automation Unit Test Integration Test Deploy to
Staging Application Acceptance Test Deploy to Production Post Deploy Test
Design for failure • Monitoring • Circuit Breaker • Chaos
Monkey
How Big is Microservices? • Single Responsibility • Small enough
to fit in in my head • X people per Service
Monolith • Simplicity • Consistency • Easy to Refactor •
Partial Deployment • Availability • Multiple Platform • Easy to Scale Microservices
Event-Driven Architecture
API-Driven Microservices FRONTEND CART SERVICE ORDER SERVICE PAYMENT SERVICE
API-Driven Microservices Problem FRONTEND CART SERVICE ORDER SERVICE PAYMENT SERVICE
NOTIF SERVICE
Event-Driven Microservices FRONTEND CART SERVICE ORDER SERVICE PAYMENT SERVICE NOTIF
SERVICE CART EVENT
Event-Driven Microservices FRONTEND CART SERVICE ORDER SERVICE PAYMENT SERVICE NOTIF
SERVICE CART EVENT FRAUD SERVICE
Event-Driven Microservices Problem FRONTEND CART SERVICE ORDER SERVICE PAYMENT SERVICE
NOTIF SERVICE CART EVENT FRAUD SERVICE
Event-Carried State Transfer FRONTEND CART SERVICE ORDER SERVICE PAYMENT SERVICE
NOTIF SERVICE FULL CART EVENT FRAUD SERVICE CART DETAIL CART DETAIL CART DETAIL CART DETAIL https://martinfowler.com/articles/201701-event-driven.html
API-Driven • Highly-coupled • Centralized business logic • Consistent •
Increase response time • Sync Event-Driven • Decoupling • Decentralized business logic • Eventual consistent • Reduce load on producer • Replicated data • Async
The Challenges of Event-Driven Microservices • Idempoten • Asynchronous •
Message Schema • Versioning • Tracing • Message Order • Consumer Complexity • Message Broker
Hands-On using Java
Tools Required for This Workshop • Java Development Kit version
1.8 or Higher • Apache Maven version 3 • Apache Kafka version 2.3 • MongoDB version 4 • Elasticsearch version 7.2
MonoPay • MonoPay is whitelabel system for e-Wallet • Merchant
can use MonoPay to support e-Wallet feature in their system • MonoPay support member management, topup management, purchase management and point management • MonoPay use monolith architecture
MonoPay Backend System Merchant Module Cash Module Member Module Transaction
Module Mongo DB Partner System HTTP
MonoPay Wallet Project https://github.com/khannedy/monopay-wallet
How to migrate MonoPay to Event-Driven Microservices?
Migrating MonoPay to Microservices MonoPay eWallet Mongo DB Partner System
HTTP MonoPay API
Migrating MonoPay to Microservices MonoPay eWallet Mongo DB Partner System
HTTP MonoPay API MonoPay Merchant
Migrating MonoPay to Microservices MonoPay eWallet Mongo DB Partner System
HTTP MonoPay API MonoPay Merchant MonoPay Member
Migrating MonoPay to Microservices MonoPay eWallet Mongo DB Partner System
HTTP MonoPay API MonoPay Merchant MonoPay Member MonoPay Transaction
Migrating MonoPay to Microservices Mongo DB Partner System HTTP MonoPay
API MonoPay Merchant MonoPay Member MonoPay Transaction MonoPay Cash
Migrating MonoPay to Microservices Mongo DB Partner System HTTP MonoPay
API MonoPay Merchant MonoPay Member MonoPay Transaction MonoPay Cash Mongo DB Mongo DB Mongo DB
How to Integrate between Services?
API-Driven vs Event-Driven
MonoPay Microservices https://github.com/khannedy/monopay-api https://github.com/khannedy/monopay-merchant https://github.com/khannedy/monopay-member https://github.com/khannedy/monopay-transaction https://github.com/khannedy/monopay-cash
Migrating to Event-Driven Microservices Partner System HTTP MonoPay API MonoPay
Merchant MonoPay Member MonoPay Transaction MonoPay Cash KAFKA
One more thing
Migrating to Event-Driven Microservices Partner System HTTP MonoPay API MonoPay
Merchant MonoPay Member MonoPay Transaction MonoPay Cash KAFKA MonoPay Analytic ELASTICSEARCH Kibana Cloud
MonoPay Microservices https://github.com/khannedy/monopay-analytic
Thank You!