SlideShare a Scribd company logo
EWTT2022: Strategi Implementasi
Database dalam Microservice
This document is owned by Equnix Business Solutions Pte LTD. This document contains
confidential information, which is protected by law. No part of this publication could be
photocopied, reproduced or translated into another language without permitted or the express
written consent of Equnix Business Solutions PTE LTD.
Data and information regarding the proposal and its offer is for limited use and are not
disclosed. The information contained in this document is subject to change at any time without
prior notice.
All rights reserved, © Copyright 2022 - Equnix Business Solutions
Copyright Notice
Microservice Architecture
GOAL:
1. Breakdown the complexity of monolith
business process
2. Easier to develop, easier to deploy
3. Smaller responsibilities for smaller and
focused team.
4. Reduce Database Hit. especially for update.
Microservice Architecture
Recommendation:
1. More cache towards faster inquiry.
2. Avoid real-time data cache, use database
internal cache.
Rest API, RPC, or Binary?
Despite of its advantage, Microservice has its
tradeoff: more point to communicate, more
latency and more things to maintain.
However, Microservices advantage are still
greater and better.
Inter Module communication can use some
options:
1. Message Queues: Kafka, RabbitMQ, etc
2. Direct communication, uses: Rest, RPC,
JSON invocation, or just plain binary.
3. Thread Pool trigger.
4. On demand thread or routine forks
5. Database access, worst case scenario.
Recommendation:
1. REST is great for interoperability between
system and entity. REST is the international
language for outside world.
2. RPC was invented long time ago, the ideas
still fresh. It is always a great idea to be able
to utilize other system resources remotely
and in flexible manner.
3. Binary representation or serialization
especially for sensitive data is high
considered.
Queue, Pool or Trigger?
Queue is very good in:
1. Decouple of chained of process
2. Scale out the load per module.
3. Offloading CPU load into flatter hit rate,
distribute CPU usage across longer time.
Queue is NOT good for:
1. Committing transaction
2. Synchronous things:
a. Process/threads
b. Communication, Query, etc
Pool
There are some pools:
Memory Pool, Connection Pool, Thread Pool, etc..
Pools provides bunch of ready to use resource, can
be combined using queues, OR only use
Conditional Variable which is faster.
Pool management is tricky, it is better
implemented without any locks.
Microservice Architecture Env.
Example of Microservice Architecture
Enterprise Service Bus
Strategy for Comprehensive Redevelopment into
Microservice Architecture
1. Application breakdown
2. Business Process/Logic refactoring
3. Data restructuring
4. Transactional level data normalization
5. Analytical level data denormalization
1. Each existing application is breaking down into simple
modules, such as per feature, or by one independent
business process (algorithm).
2. Build the interdependence of each of these modules into
a unified business process that going through from
accept the input of user (SPOE/WUI) up to the ORM
(Object Relational Module).
3. Develop middlewares to couple the communication
between modules. (Kafka, Redis, etc)
4. Develop an API Gateway for User Interface, as the single
point of entry to ensure better access security.
5. Rebuilding RDBMS data structure to support
Microservices. It is required to be assessed more
comprehensive and involves all applications
Application Breakdown Strategy
6. Develop a data synchronization tools for Old Data
Structure and New one.
7. Create a staging database to support local data
manipulation per modules before reaching stable
transaction state.
8. Develop Data Warehouse System
9. Develop Data Lake for storing huge data from multiple
data sources

More Related Content

PPTX
Introduction to Microservices
MahmoudZidan41
 
PDF
How to grow your own Microservice?
Dmitry Buzdin
 
PDF
Beginning Microservices with .NET & RabbitMQ
Paul Mooney
 
PDF
Microservices - opportunities, dilemmas and problems
Łukasz Sowa
 
PDF
Microservices - when, why and how incontrodevops.it
Giuseppe Lavagetto
 
PDF
The Why and How of Applications with APIs and microservices
Ronald Ashri
 
PDF
Platforms and Microservices - Is There a Middle Ground for Engineers and Tech...
Dialexa
 
PPTX
Micro services - Practicalities & things to watch out for
Parthiban J
 
Introduction to Microservices
MahmoudZidan41
 
How to grow your own Microservice?
Dmitry Buzdin
 
Beginning Microservices with .NET & RabbitMQ
Paul Mooney
 
Microservices - opportunities, dilemmas and problems
Łukasz Sowa
 
Microservices - when, why and how incontrodevops.it
Giuseppe Lavagetto
 
The Why and How of Applications with APIs and microservices
Ronald Ashri
 
Platforms and Microservices - Is There a Middle Ground for Engineers and Tech...
Dialexa
 
Micro services - Practicalities & things to watch out for
Parthiban J
 

Similar to [EWTT2022] Strategi Implementasi Database dalam Microservice Architecture.pdf (20)

PPTX
Micro services
Parthiban J
 
PDF
Refactoring to Microservice Architecture
IJCSIS Research Publications
 
PPTX
Effective Microservices In a Data-centric World
Randy Shoup
 
PPTX
Mykhailo Hryhorash: Архітектура IT-рішень (Частина 1) (UA)
Lviv Startup Club
 
PDF
Micro services Architecture with Vortex -- Part I
Angelo Corsaro
 
PPTX
Microservices vs monolithics betabeers
Jesús Mª Villar Vazquez
 
PPT
Technology Overview
Liran Zelkha
 
ODP
Cartographer, or Building A Next Generation Management Framework
ansmtug
 
PPT
S+S Architecture Overview
David Solivan
 
PPTX
Introduction to Advanced Databases .pptx
Sisodetrupti
 
PDF
Oracle Fusion Middleware - pragmatic approach to build up your applications -...
ORACLE USER GROUP ESTONIA
 
PDF
Microservices for java architects it-symposium-2015-09-15
Derek Ashmore
 
PPTX
Client Server Architecture...pptx
praladbaral
 
PPTX
Mykhailo Hryhorash: Архітектура IT-рішень (Частина 1) (UA)
content75
 
PPTX
Monolithic - Microservice Architecture
GomathiNayagam S
 
PPTX
Data stream processing and micro service architecture
Vyacheslav Benedichuk
 
PPTX
Microservices for performance - GOTO Chicago 2016
Peter Lawrey
 
PPTX
#dbhouseparty - Should I be building Microservices?
Tammy Bednar
 
PDF
Accion labs microservices white paper
Tony Kernan
 
PDF
Accion Labs microservices white paper
Tony Kernan
 
Micro services
Parthiban J
 
Refactoring to Microservice Architecture
IJCSIS Research Publications
 
Effective Microservices In a Data-centric World
Randy Shoup
 
Mykhailo Hryhorash: Архітектура IT-рішень (Частина 1) (UA)
Lviv Startup Club
 
Micro services Architecture with Vortex -- Part I
Angelo Corsaro
 
Microservices vs monolithics betabeers
Jesús Mª Villar Vazquez
 
Technology Overview
Liran Zelkha
 
Cartographer, or Building A Next Generation Management Framework
ansmtug
 
S+S Architecture Overview
David Solivan
 
Introduction to Advanced Databases .pptx
Sisodetrupti
 
Oracle Fusion Middleware - pragmatic approach to build up your applications -...
ORACLE USER GROUP ESTONIA
 
Microservices for java architects it-symposium-2015-09-15
Derek Ashmore
 
Client Server Architecture...pptx
praladbaral
 
Mykhailo Hryhorash: Архітектура IT-рішень (Частина 1) (UA)
content75
 
Monolithic - Microservice Architecture
GomathiNayagam S
 
Data stream processing and micro service architecture
Vyacheslav Benedichuk
 
Microservices for performance - GOTO Chicago 2016
Peter Lawrey
 
#dbhouseparty - Should I be building Microservices?
Tammy Bednar
 
Accion labs microservices white paper
Tony Kernan
 
Accion Labs microservices white paper
Tony Kernan
 
Ad

More from Equnix Business Solutions (20)

PDF
Yang perlu kita ketahui Untuk memahami aspek utama IT dalam bisnis_.pdf
Equnix Business Solutions
 
PDF
Kebocoran Data_ Tindakan Hacker atau Kriminal_ Bagaimana kita mengantisipasi...
Equnix Business Solutions
 
PDF
Kuliah Tamu - Dari Proses Bisnis Menuju Struktur Data.pdf
Equnix Business Solutions
 
PDF
EWTT22_ Apakah Open Source Cocok digunakan dalam Korporasi_.pdf
Equnix Business Solutions
 
PDF
Oracle to PostgreSQL, Challenges to Opportunity.pdf
Equnix Business Solutions
 
PDF
PostgreSQL as Enterprise Solution v1.1.pdf
Equnix Business Solutions
 
PDF
Webinar2021 - Does HA Can Help You Balance Your Load-.pdf
Equnix Business Solutions
 
PDF
Webinar2021 - In-Memory Database, is it really faster-.pdf
Equnix Business Solutions
 
PDF
EQUNIX - PPT 11DB-Postgres™.pdf
Equnix Business Solutions
 
PPTX
equpos - General Presentation v20230420.pptx
Equnix Business Solutions
 
PDF
Equnix Appliance- Jawaban terbaik untuk kebutuhan komputasi yang mumpuni.pdf
Equnix Business Solutions
 
PDF
OSPX - Professional PostgreSQL Certification Scheme v20201111.pdf
Equnix Business Solutions
 
PDF
Equnix Company Profile v20230329.pdf
Equnix Business Solutions
 
PDF
PGConf.ASIA 2019 - The Future of TDEforPG - Taiki Kondo
Equnix Business Solutions
 
PDF
PGConf.ASIA 2019 - PGSpider High Performance Cluster Engine - Shigeo Hirose
Equnix Business Solutions
 
PDF
PGConf.ASIA 2019 - High Availability, 10 Seconds Failover - Lucky Haryadi
Equnix Business Solutions
 
PDF
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
Equnix Business Solutions
 
PDF
PGConf.ASIA 2019 Bali - Keynote Speech 3 - Kohei KaiGai
Equnix Business Solutions
 
PDF
PGConf.ASIA 2019 Bali - Keynote Speech 2 - Ivan Pachenko
Equnix Business Solutions
 
PDF
PGConf.ASIA 2019 Bali - Keynote Speech 1 - Bruce Momjian
Equnix Business Solutions
 
Yang perlu kita ketahui Untuk memahami aspek utama IT dalam bisnis_.pdf
Equnix Business Solutions
 
Kebocoran Data_ Tindakan Hacker atau Kriminal_ Bagaimana kita mengantisipasi...
Equnix Business Solutions
 
Kuliah Tamu - Dari Proses Bisnis Menuju Struktur Data.pdf
Equnix Business Solutions
 
EWTT22_ Apakah Open Source Cocok digunakan dalam Korporasi_.pdf
Equnix Business Solutions
 
Oracle to PostgreSQL, Challenges to Opportunity.pdf
Equnix Business Solutions
 
PostgreSQL as Enterprise Solution v1.1.pdf
Equnix Business Solutions
 
Webinar2021 - Does HA Can Help You Balance Your Load-.pdf
Equnix Business Solutions
 
Webinar2021 - In-Memory Database, is it really faster-.pdf
Equnix Business Solutions
 
EQUNIX - PPT 11DB-Postgres™.pdf
Equnix Business Solutions
 
equpos - General Presentation v20230420.pptx
Equnix Business Solutions
 
Equnix Appliance- Jawaban terbaik untuk kebutuhan komputasi yang mumpuni.pdf
Equnix Business Solutions
 
OSPX - Professional PostgreSQL Certification Scheme v20201111.pdf
Equnix Business Solutions
 
Equnix Company Profile v20230329.pdf
Equnix Business Solutions
 
PGConf.ASIA 2019 - The Future of TDEforPG - Taiki Kondo
Equnix Business Solutions
 
PGConf.ASIA 2019 - PGSpider High Performance Cluster Engine - Shigeo Hirose
Equnix Business Solutions
 
PGConf.ASIA 2019 - High Availability, 10 Seconds Failover - Lucky Haryadi
Equnix Business Solutions
 
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
Equnix Business Solutions
 
PGConf.ASIA 2019 Bali - Keynote Speech 3 - Kohei KaiGai
Equnix Business Solutions
 
PGConf.ASIA 2019 Bali - Keynote Speech 2 - Ivan Pachenko
Equnix Business Solutions
 
PGConf.ASIA 2019 Bali - Keynote Speech 1 - Bruce Momjian
Equnix Business Solutions
 
Ad

Recently uploaded (20)

PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
This slide provides an overview Technology
mineshkharadi333
 
PDF
Best ERP System for Manufacturing in India | Elite Mindz
Elite Mindz
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
Software Development Company | KodekX
KodekX
 
PPT
Coupa-Kickoff-Meeting-Template presentai
annapureddyn
 
PPTX
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
PPT
L2 Rules of Netiquette in Empowerment technology
Archibal2
 
PDF
Revolutionize Operations with Intelligent IoT Monitoring and Control
Rejig Digital
 
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
PDF
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
This slide provides an overview Technology
mineshkharadi333
 
Best ERP System for Manufacturing in India | Elite Mindz
Elite Mindz
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
Software Development Company | KodekX
KodekX
 
Coupa-Kickoff-Meeting-Template presentai
annapureddyn
 
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
L2 Rules of Netiquette in Empowerment technology
Archibal2
 
Revolutionize Operations with Intelligent IoT Monitoring and Control
Rejig Digital
 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 

[EWTT2022] Strategi Implementasi Database dalam Microservice Architecture.pdf

  • 2. This document is owned by Equnix Business Solutions Pte LTD. This document contains confidential information, which is protected by law. No part of this publication could be photocopied, reproduced or translated into another language without permitted or the express written consent of Equnix Business Solutions PTE LTD. Data and information regarding the proposal and its offer is for limited use and are not disclosed. The information contained in this document is subject to change at any time without prior notice. All rights reserved, © Copyright 2022 - Equnix Business Solutions Copyright Notice
  • 4. GOAL: 1. Breakdown the complexity of monolith business process 2. Easier to develop, easier to deploy 3. Smaller responsibilities for smaller and focused team. 4. Reduce Database Hit. especially for update. Microservice Architecture Recommendation: 1. More cache towards faster inquiry. 2. Avoid real-time data cache, use database internal cache.
  • 5. Rest API, RPC, or Binary? Despite of its advantage, Microservice has its tradeoff: more point to communicate, more latency and more things to maintain. However, Microservices advantage are still greater and better. Inter Module communication can use some options: 1. Message Queues: Kafka, RabbitMQ, etc 2. Direct communication, uses: Rest, RPC, JSON invocation, or just plain binary. 3. Thread Pool trigger. 4. On demand thread or routine forks 5. Database access, worst case scenario. Recommendation: 1. REST is great for interoperability between system and entity. REST is the international language for outside world. 2. RPC was invented long time ago, the ideas still fresh. It is always a great idea to be able to utilize other system resources remotely and in flexible manner. 3. Binary representation or serialization especially for sensitive data is high considered.
  • 6. Queue, Pool or Trigger? Queue is very good in: 1. Decouple of chained of process 2. Scale out the load per module. 3. Offloading CPU load into flatter hit rate, distribute CPU usage across longer time. Queue is NOT good for: 1. Committing transaction 2. Synchronous things: a. Process/threads b. Communication, Query, etc Pool There are some pools: Memory Pool, Connection Pool, Thread Pool, etc.. Pools provides bunch of ready to use resource, can be combined using queues, OR only use Conditional Variable which is faster. Pool management is tricky, it is better implemented without any locks.
  • 8. Example of Microservice Architecture
  • 10. Strategy for Comprehensive Redevelopment into Microservice Architecture 1. Application breakdown 2. Business Process/Logic refactoring 3. Data restructuring 4. Transactional level data normalization 5. Analytical level data denormalization
  • 11. 1. Each existing application is breaking down into simple modules, such as per feature, or by one independent business process (algorithm). 2. Build the interdependence of each of these modules into a unified business process that going through from accept the input of user (SPOE/WUI) up to the ORM (Object Relational Module). 3. Develop middlewares to couple the communication between modules. (Kafka, Redis, etc) 4. Develop an API Gateway for User Interface, as the single point of entry to ensure better access security. 5. Rebuilding RDBMS data structure to support Microservices. It is required to be assessed more comprehensive and involves all applications Application Breakdown Strategy 6. Develop a data synchronization tools for Old Data Structure and New one. 7. Create a staging database to support local data manipulation per modules before reaching stable transaction state. 8. Develop Data Warehouse System 9. Develop Data Lake for storing huge data from multiple data sources