SlideShare a Scribd company logo
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved.
Data management
In Microservices
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !2
Data management
in Microservices
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !3
Monolithic
Application
DB
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !4
Microservices
Service 1 Service 2 Service 3
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !5
Microservices
Service 1 Service 2 Service 3
1. Shared database
DB
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !6
Microservices
Service 1 Service 2 Service 3
2. Database per service
DBDB DB
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !7
Database per service
High complexity
Query data across multiple databases
Challenge “How to join data ?”
Maintain database consistency
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !8
How to maintain data
consistency across services ?
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !9
We need …
Don’t need distributed transaction
Reduce complexity of code
Reliable
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !10
???
Service 1
Service 2
Service 3
Sequence of Tx and emit event or message
that trigger the next process in Tx
Event
produce
consume
Event
produce
consume
Timeline
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !11
???
Service 1
Service 2
Service 3
Sequence of Tx and emit event or message
that trigger the next process in Tx
1. command 2. response
3. command
4. response
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !12
Message vs Event
Message is addressed to someone
Event is something that happen and someone
can react to that
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !13
“Saga”
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !14
Event sourcing
Maintain source of truth of business
Immutable sequence of events
Event Event TimelineEventEvent Event
Sequence of event is keep in Event store
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !15
Event store
Keep events in order
Broadcast new event
Service 1 Service 2 Service 3
Event store
produce consume consume
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !16
With Event sourcing, we can
decouple services (query and
command)
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !17
CQRS
Command Query Responsibility Segregation
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !18
CQRS
Separate command and query services
Command Query
Event store
produce consume
DB
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !19
Event sourcing with database
Working with database
Bin log Event storeDB
bin log event
Binlog or Binary log event is information about data modification made to database
Event Event Event
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !20
Event sourcing
Duplication data (denormalize database)
Complexity (separate query and command)
Difficult to maintain
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !21
Event sourcing can’t solve all
problems
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !22
Start with understand your
purpose
Data management in Microservices
© 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !23
Start with understand your
problem to resolve
Ad

More Related Content

Similar to Manage data of service (20)

vTalk#1 Microservices with Spring Boot
vTalk#1 Microservices with Spring BootvTalk#1 Microservices with Spring Boot
vTalk#1 Microservices with Spring Boot
Somkiat Puisungnoen
 
Digital Experience Management—The Key to Delivering Exceptional Digital Exper...
Digital Experience Management—The Key to Delivering Exceptional Digital Exper...Digital Experience Management—The Key to Delivering Exceptional Digital Exper...
Digital Experience Management—The Key to Delivering Exceptional Digital Exper...
Riverbed Technology
 
In-Memory Computing Driving Edge Computing and Blockchain Technologies
In-Memory Computing Driving Edge Computing and Blockchain TechnologiesIn-Memory Computing Driving Edge Computing and Blockchain Technologies
In-Memory Computing Driving Edge Computing and Blockchain Technologies
dsapps
 
Data & Analytic Innovations: 5 lessons from our customers
Data & Analytic Innovations: 5 lessons from our customersData & Analytic Innovations: 5 lessons from our customers
Data & Analytic Innovations: 5 lessons from our customers
Nick Smith
 
MongoDB World 2018: From Disruption to Transformation: Document Databases, Do...
MongoDB World 2018: From Disruption to Transformation: Document Databases, Do...MongoDB World 2018: From Disruption to Transformation: Document Databases, Do...
MongoDB World 2018: From Disruption to Transformation: Document Databases, Do...
MongoDB
 
Is Your ERP Ready for the Age of Personalization?
Is Your ERP Ready for the Age of Personalization?Is Your ERP Ready for the Age of Personalization?
Is Your ERP Ready for the Age of Personalization?
Rootstock Software
 
VERSNEL INNOVATIE MET DATA SCIENCE - WERK SAMEN, OPERATIONALISEER EN SCHAAL M...
VERSNEL INNOVATIE MET DATA SCIENCE - WERK SAMEN, OPERATIONALISEER EN SCHAAL M...VERSNEL INNOVATIE MET DATA SCIENCE - WERK SAMEN, OPERATIONALISEER EN SCHAAL M...
VERSNEL INNOVATIE MET DATA SCIENCE - WERK SAMEN, OPERATIONALISEER EN SCHAAL M...
webwinkelvakdag
 
Peter Grimmond – Harnessing the power of data
Peter Grimmond – Harnessing the power of dataPeter Grimmond – Harnessing the power of data
Peter Grimmond – Harnessing the power of data
Veritas Technologies LLC
 
Denodo DataFest 2017: Company Leadership from Data Leadership
Denodo DataFest 2017: Company Leadership from Data LeadershipDenodo DataFest 2017: Company Leadership from Data Leadership
Denodo DataFest 2017: Company Leadership from Data Leadership
Denodo
 
7 ways to drive Digital Transformation
7 ways to drive Digital Transformation7 ways to drive Digital Transformation
7 ways to drive Digital Transformation
Jonathan Beardsley
 
Cisco Connect 2018 Singapore - delivering intent for data center networking
Cisco Connect 2018 Singapore -   delivering intent for data center networkingCisco Connect 2018 Singapore -   delivering intent for data center networking
Cisco Connect 2018 Singapore - delivering intent for data center networking
NetworkCollaborators
 
Xanadu for Big Data + IoT + Deep Learning + Cloud Integration Strategy
Xanadu for Big Data + IoT + Deep Learning + Cloud Integration StrategyXanadu for Big Data + IoT + Deep Learning + Cloud Integration Strategy
Xanadu for Big Data + IoT + Deep Learning + Cloud Integration Strategy
Alex G. Lee, Ph.D. Esq. CLP
 
Cisco Connect 2018 Malaysia - Programmability and telemetry for future networks
Cisco Connect 2018 Malaysia - Programmability and telemetry for future networksCisco Connect 2018 Malaysia - Programmability and telemetry for future networks
Cisco Connect 2018 Malaysia - Programmability and telemetry for future networks
NetworkCollaborators
 
graymatter-pentaho-consulting-services-.pdf
graymatter-pentaho-consulting-services-.pdfgraymatter-pentaho-consulting-services-.pdf
graymatter-pentaho-consulting-services-.pdf
GrayMatter Software Services
 
Leap to Next Generation Data Management with Denodo 7.0
Leap to Next Generation Data Management with Denodo 7.0Leap to Next Generation Data Management with Denodo 7.0
Leap to Next Generation Data Management with Denodo 7.0
Denodo
 
Machine Learning for z/OS
Machine Learning for z/OSMachine Learning for z/OS
Machine Learning for z/OS
Cuneyt Goksu
 
#Blockchain - ISG Digital Business Summit 2017 - AP Manders
#Blockchain - ISG Digital Business Summit 2017 - AP Manders#Blockchain - ISG Digital Business Summit 2017 - AP Manders
#Blockchain - ISG Digital Business Summit 2017 - AP Manders
Alex Manders
 
IBM Storage at the Incisive Media, IT Leaders Forum with Computing.co.uk
IBM Storage at the Incisive Media, IT Leaders Forum with Computing.co.ukIBM Storage at the Incisive Media, IT Leaders Forum with Computing.co.uk
IBM Storage at the Incisive Media, IT Leaders Forum with Computing.co.uk
Matt Fordham
 
Blockchain - "Hype, Reality and Promise" - ISG Digital Business Summit, 2018
Blockchain - "Hype, Reality and Promise" - ISG Digital Business Summit, 2018 Blockchain - "Hype, Reality and Promise" - ISG Digital Business Summit, 2018
Blockchain - "Hype, Reality and Promise" - ISG Digital Business Summit, 2018
Alex Manders
 
Rethink business with OpenText Core applications and services
Rethink business with OpenText Core applications and servicesRethink business with OpenText Core applications and services
Rethink business with OpenText Core applications and services
OpenText
 
vTalk#1 Microservices with Spring Boot
vTalk#1 Microservices with Spring BootvTalk#1 Microservices with Spring Boot
vTalk#1 Microservices with Spring Boot
Somkiat Puisungnoen
 
Digital Experience Management—The Key to Delivering Exceptional Digital Exper...
Digital Experience Management—The Key to Delivering Exceptional Digital Exper...Digital Experience Management—The Key to Delivering Exceptional Digital Exper...
Digital Experience Management—The Key to Delivering Exceptional Digital Exper...
Riverbed Technology
 
In-Memory Computing Driving Edge Computing and Blockchain Technologies
In-Memory Computing Driving Edge Computing and Blockchain TechnologiesIn-Memory Computing Driving Edge Computing and Blockchain Technologies
In-Memory Computing Driving Edge Computing and Blockchain Technologies
dsapps
 
Data & Analytic Innovations: 5 lessons from our customers
Data & Analytic Innovations: 5 lessons from our customersData & Analytic Innovations: 5 lessons from our customers
Data & Analytic Innovations: 5 lessons from our customers
Nick Smith
 
MongoDB World 2018: From Disruption to Transformation: Document Databases, Do...
MongoDB World 2018: From Disruption to Transformation: Document Databases, Do...MongoDB World 2018: From Disruption to Transformation: Document Databases, Do...
MongoDB World 2018: From Disruption to Transformation: Document Databases, Do...
MongoDB
 
Is Your ERP Ready for the Age of Personalization?
Is Your ERP Ready for the Age of Personalization?Is Your ERP Ready for the Age of Personalization?
Is Your ERP Ready for the Age of Personalization?
Rootstock Software
 
VERSNEL INNOVATIE MET DATA SCIENCE - WERK SAMEN, OPERATIONALISEER EN SCHAAL M...
VERSNEL INNOVATIE MET DATA SCIENCE - WERK SAMEN, OPERATIONALISEER EN SCHAAL M...VERSNEL INNOVATIE MET DATA SCIENCE - WERK SAMEN, OPERATIONALISEER EN SCHAAL M...
VERSNEL INNOVATIE MET DATA SCIENCE - WERK SAMEN, OPERATIONALISEER EN SCHAAL M...
webwinkelvakdag
 
Peter Grimmond – Harnessing the power of data
Peter Grimmond – Harnessing the power of dataPeter Grimmond – Harnessing the power of data
Peter Grimmond – Harnessing the power of data
Veritas Technologies LLC
 
Denodo DataFest 2017: Company Leadership from Data Leadership
Denodo DataFest 2017: Company Leadership from Data LeadershipDenodo DataFest 2017: Company Leadership from Data Leadership
Denodo DataFest 2017: Company Leadership from Data Leadership
Denodo
 
7 ways to drive Digital Transformation
7 ways to drive Digital Transformation7 ways to drive Digital Transformation
7 ways to drive Digital Transformation
Jonathan Beardsley
 
Cisco Connect 2018 Singapore - delivering intent for data center networking
Cisco Connect 2018 Singapore -   delivering intent for data center networkingCisco Connect 2018 Singapore -   delivering intent for data center networking
Cisco Connect 2018 Singapore - delivering intent for data center networking
NetworkCollaborators
 
Xanadu for Big Data + IoT + Deep Learning + Cloud Integration Strategy
Xanadu for Big Data + IoT + Deep Learning + Cloud Integration StrategyXanadu for Big Data + IoT + Deep Learning + Cloud Integration Strategy
Xanadu for Big Data + IoT + Deep Learning + Cloud Integration Strategy
Alex G. Lee, Ph.D. Esq. CLP
 
Cisco Connect 2018 Malaysia - Programmability and telemetry for future networks
Cisco Connect 2018 Malaysia - Programmability and telemetry for future networksCisco Connect 2018 Malaysia - Programmability and telemetry for future networks
Cisco Connect 2018 Malaysia - Programmability and telemetry for future networks
NetworkCollaborators
 
Leap to Next Generation Data Management with Denodo 7.0
Leap to Next Generation Data Management with Denodo 7.0Leap to Next Generation Data Management with Denodo 7.0
Leap to Next Generation Data Management with Denodo 7.0
Denodo
 
Machine Learning for z/OS
Machine Learning for z/OSMachine Learning for z/OS
Machine Learning for z/OS
Cuneyt Goksu
 
#Blockchain - ISG Digital Business Summit 2017 - AP Manders
#Blockchain - ISG Digital Business Summit 2017 - AP Manders#Blockchain - ISG Digital Business Summit 2017 - AP Manders
#Blockchain - ISG Digital Business Summit 2017 - AP Manders
Alex Manders
 
IBM Storage at the Incisive Media, IT Leaders Forum with Computing.co.uk
IBM Storage at the Incisive Media, IT Leaders Forum with Computing.co.ukIBM Storage at the Incisive Media, IT Leaders Forum with Computing.co.uk
IBM Storage at the Incisive Media, IT Leaders Forum with Computing.co.uk
Matt Fordham
 
Blockchain - "Hype, Reality and Promise" - ISG Digital Business Summit, 2018
Blockchain - "Hype, Reality and Promise" - ISG Digital Business Summit, 2018 Blockchain - "Hype, Reality and Promise" - ISG Digital Business Summit, 2018
Blockchain - "Hype, Reality and Promise" - ISG Digital Business Summit, 2018
Alex Manders
 
Rethink business with OpenText Core applications and services
Rethink business with OpenText Core applications and servicesRethink business with OpenText Core applications and services
Rethink business with OpenText Core applications and services
OpenText
 

More from Somkiat Puisungnoen (20)

Next of Java 2022
Next of Java 2022Next of Java 2022
Next of Java 2022
Somkiat Puisungnoen
 
Lesson learned from React native and Flutter
Lesson learned from React native and FlutterLesson learned from React native and Flutter
Lesson learned from React native and Flutter
Somkiat Puisungnoen
 
devops
devops devops
devops
Somkiat Puisungnoen
 
Angular :: basic tuning performance
Angular :: basic tuning performanceAngular :: basic tuning performance
Angular :: basic tuning performance
Somkiat Puisungnoen
 
Shared code between projects
Shared code between projectsShared code between projects
Shared code between projects
Somkiat Puisungnoen
 
RobotFramework Meetup at Thailand #2
RobotFramework Meetup at Thailand #2RobotFramework Meetup at Thailand #2
RobotFramework Meetup at Thailand #2
Somkiat Puisungnoen
 
Visual testing
Visual testingVisual testing
Visual testing
Somkiat Puisungnoen
 
Cloud Native App
Cloud Native AppCloud Native App
Cloud Native App
Somkiat Puisungnoen
 
Sck Agile in Real World
Sck Agile in Real WorldSck Agile in Real World
Sck Agile in Real World
Somkiat Puisungnoen
 
Clean you code
Clean you codeClean you code
Clean you code
Somkiat Puisungnoen
 
SCK Firestore at CNX
SCK Firestore at CNXSCK Firestore at CNX
SCK Firestore at CNX
Somkiat Puisungnoen
 
Unhappiness Developer
Unhappiness DeveloperUnhappiness Developer
Unhappiness Developer
Somkiat Puisungnoen
 
The Beauty of BAD code
The Beauty of  BAD codeThe Beauty of  BAD code
The Beauty of BAD code
Somkiat Puisungnoen
 
React in the right way
React in the right wayReact in the right way
React in the right way
Somkiat Puisungnoen
 
Rise of Container (RoC)
Rise of Container (RoC)Rise of Container (RoC)
Rise of Container (RoC)
Somkiat Puisungnoen
 
SCK :: Scrum is NOT Enough
SCK :: Scrum is NOT EnoughSCK :: Scrum is NOT Enough
SCK :: Scrum is NOT Enough
Somkiat Puisungnoen
 
Software Development Trends 2017 at IMC
Software Development Trends 2017 at IMCSoftware Development Trends 2017 at IMC
Software Development Trends 2017 at IMC
Somkiat Puisungnoen
 
Design pattern with Java 8
Design pattern with Java 8Design pattern with Java 8
Design pattern with Java 8
Somkiat Puisungnoen
 
Meetup :: Update Elastic Stack 5.0
Meetup :: Update Elastic Stack 5.0Meetup :: Update Elastic Stack 5.0
Meetup :: Update Elastic Stack 5.0
Somkiat Puisungnoen
 
Git as NoSQL
Git as NoSQLGit as NoSQL
Git as NoSQL
Somkiat Puisungnoen
 
Ad

Recently uploaded (20)

An Overview of Salesforce Health Cloud & How is it Transforming Patient Care
An Overview of Salesforce Health Cloud & How is it Transforming Patient CareAn Overview of Salesforce Health Cloud & How is it Transforming Patient Care
An Overview of Salesforce Health Cloud & How is it Transforming Patient Care
Cyntexa
 
Com fer un pla de gestió de dades amb l'eiNa DMP (en anglès)
Com fer un pla de gestió de dades amb l'eiNa DMP (en anglès)Com fer un pla de gestió de dades amb l'eiNa DMP (en anglès)
Com fer un pla de gestió de dades amb l'eiNa DMP (en anglès)
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Could Virtual Threads cast away the usage of Kotlin Coroutines - DevoxxUK2025
Could Virtual Threads cast away the usage of Kotlin Coroutines - DevoxxUK2025Could Virtual Threads cast away the usage of Kotlin Coroutines - DevoxxUK2025
Could Virtual Threads cast away the usage of Kotlin Coroutines - DevoxxUK2025
João Esperancinha
 
Cybersecurity Threat Vectors and Mitigation
Cybersecurity Threat Vectors and MitigationCybersecurity Threat Vectors and Mitigation
Cybersecurity Threat Vectors and Mitigation
VICTOR MAESTRE RAMIREZ
 
Kit-Works Team Study_아직도 Dockefile.pdf_김성호
Kit-Works Team Study_아직도 Dockefile.pdf_김성호Kit-Works Team Study_아직도 Dockefile.pdf_김성호
Kit-Works Team Study_아직도 Dockefile.pdf_김성호
Wonjun Hwang
 
Developing System Infrastructure Design Plan.pptx
Developing System Infrastructure Design Plan.pptxDeveloping System Infrastructure Design Plan.pptx
Developing System Infrastructure Design Plan.pptx
wondimagegndesta
 
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à GenèveUiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPathCommunity
 
Building the Customer Identity Community, Together.pdf
Building the Customer Identity Community, Together.pdfBuilding the Customer Identity Community, Together.pdf
Building the Customer Identity Community, Together.pdf
Cheryl Hung
 
machines-for-woodworking-shops-en-compressed.pdf
machines-for-woodworking-shops-en-compressed.pdfmachines-for-woodworking-shops-en-compressed.pdf
machines-for-woodworking-shops-en-compressed.pdf
AmirStern2
 
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
SOFTTECHHUB
 
IT484 Cyber Forensics_Information Technology
IT484 Cyber Forensics_Information TechnologyIT484 Cyber Forensics_Information Technology
IT484 Cyber Forensics_Information Technology
SHEHABALYAMANI
 
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent LasterAI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
All Things Open
 
AI x Accessibility UXPA by Stew Smith and Olivier Vroom
AI x Accessibility UXPA by Stew Smith and Olivier VroomAI x Accessibility UXPA by Stew Smith and Olivier Vroom
AI x Accessibility UXPA by Stew Smith and Olivier Vroom
UXPA Boston
 
Mastering Testing in the Modern F&B Landscape
Mastering Testing in the Modern F&B LandscapeMastering Testing in the Modern F&B Landscape
Mastering Testing in the Modern F&B Landscape
marketing943205
 
fennec fox optimization algorithm for optimal solution
fennec fox optimization algorithm for optimal solutionfennec fox optimization algorithm for optimal solution
fennec fox optimization algorithm for optimal solution
shallal2
 
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
James Anderson
 
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Safe Software
 
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptxReimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
John Moore
 
Viam product demo_ Deploying and scaling AI with hardware.pdf
Viam product demo_ Deploying and scaling AI with hardware.pdfViam product demo_ Deploying and scaling AI with hardware.pdf
Viam product demo_ Deploying and scaling AI with hardware.pdf
camilalamoratta
 
DevOpsDays SLC - Platform Engineers are Product Managers.pptx
DevOpsDays SLC - Platform Engineers are Product Managers.pptxDevOpsDays SLC - Platform Engineers are Product Managers.pptx
DevOpsDays SLC - Platform Engineers are Product Managers.pptx
Justin Reock
 
An Overview of Salesforce Health Cloud & How is it Transforming Patient Care
An Overview of Salesforce Health Cloud & How is it Transforming Patient CareAn Overview of Salesforce Health Cloud & How is it Transforming Patient Care
An Overview of Salesforce Health Cloud & How is it Transforming Patient Care
Cyntexa
 
Could Virtual Threads cast away the usage of Kotlin Coroutines - DevoxxUK2025
Could Virtual Threads cast away the usage of Kotlin Coroutines - DevoxxUK2025Could Virtual Threads cast away the usage of Kotlin Coroutines - DevoxxUK2025
Could Virtual Threads cast away the usage of Kotlin Coroutines - DevoxxUK2025
João Esperancinha
 
Cybersecurity Threat Vectors and Mitigation
Cybersecurity Threat Vectors and MitigationCybersecurity Threat Vectors and Mitigation
Cybersecurity Threat Vectors and Mitigation
VICTOR MAESTRE RAMIREZ
 
Kit-Works Team Study_아직도 Dockefile.pdf_김성호
Kit-Works Team Study_아직도 Dockefile.pdf_김성호Kit-Works Team Study_아직도 Dockefile.pdf_김성호
Kit-Works Team Study_아직도 Dockefile.pdf_김성호
Wonjun Hwang
 
Developing System Infrastructure Design Plan.pptx
Developing System Infrastructure Design Plan.pptxDeveloping System Infrastructure Design Plan.pptx
Developing System Infrastructure Design Plan.pptx
wondimagegndesta
 
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à GenèveUiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPathCommunity
 
Building the Customer Identity Community, Together.pdf
Building the Customer Identity Community, Together.pdfBuilding the Customer Identity Community, Together.pdf
Building the Customer Identity Community, Together.pdf
Cheryl Hung
 
machines-for-woodworking-shops-en-compressed.pdf
machines-for-woodworking-shops-en-compressed.pdfmachines-for-woodworking-shops-en-compressed.pdf
machines-for-woodworking-shops-en-compressed.pdf
AmirStern2
 
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
SOFTTECHHUB
 
IT484 Cyber Forensics_Information Technology
IT484 Cyber Forensics_Information TechnologyIT484 Cyber Forensics_Information Technology
IT484 Cyber Forensics_Information Technology
SHEHABALYAMANI
 
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent LasterAI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
All Things Open
 
AI x Accessibility UXPA by Stew Smith and Olivier Vroom
AI x Accessibility UXPA by Stew Smith and Olivier VroomAI x Accessibility UXPA by Stew Smith and Olivier Vroom
AI x Accessibility UXPA by Stew Smith and Olivier Vroom
UXPA Boston
 
Mastering Testing in the Modern F&B Landscape
Mastering Testing in the Modern F&B LandscapeMastering Testing in the Modern F&B Landscape
Mastering Testing in the Modern F&B Landscape
marketing943205
 
fennec fox optimization algorithm for optimal solution
fennec fox optimization algorithm for optimal solutionfennec fox optimization algorithm for optimal solution
fennec fox optimization algorithm for optimal solution
shallal2
 
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
James Anderson
 
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Safe Software
 
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptxReimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
John Moore
 
Viam product demo_ Deploying and scaling AI with hardware.pdf
Viam product demo_ Deploying and scaling AI with hardware.pdfViam product demo_ Deploying and scaling AI with hardware.pdf
Viam product demo_ Deploying and scaling AI with hardware.pdf
camilalamoratta
 
DevOpsDays SLC - Platform Engineers are Product Managers.pptx
DevOpsDays SLC - Platform Engineers are Product Managers.pptxDevOpsDays SLC - Platform Engineers are Product Managers.pptx
DevOpsDays SLC - Platform Engineers are Product Managers.pptx
Justin Reock
 
Ad

Manage data of service

  • 1. © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. Data management In Microservices
  • 2. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !2 Data management in Microservices
  • 3. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !3 Monolithic Application DB
  • 4. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !4 Microservices Service 1 Service 2 Service 3
  • 5. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !5 Microservices Service 1 Service 2 Service 3 1. Shared database DB
  • 6. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !6 Microservices Service 1 Service 2 Service 3 2. Database per service DBDB DB
  • 7. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !7 Database per service High complexity Query data across multiple databases Challenge “How to join data ?” Maintain database consistency
  • 8. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !8 How to maintain data consistency across services ?
  • 9. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !9 We need … Don’t need distributed transaction Reduce complexity of code Reliable
  • 10. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !10 ??? Service 1 Service 2 Service 3 Sequence of Tx and emit event or message that trigger the next process in Tx Event produce consume Event produce consume Timeline
  • 11. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !11 ??? Service 1 Service 2 Service 3 Sequence of Tx and emit event or message that trigger the next process in Tx 1. command 2. response 3. command 4. response
  • 12. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !12 Message vs Event Message is addressed to someone Event is something that happen and someone can react to that
  • 13. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !13 “Saga”
  • 14. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !14 Event sourcing Maintain source of truth of business Immutable sequence of events Event Event TimelineEventEvent Event Sequence of event is keep in Event store
  • 15. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !15 Event store Keep events in order Broadcast new event Service 1 Service 2 Service 3 Event store produce consume consume
  • 16. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !16 With Event sourcing, we can decouple services (query and command)
  • 17. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !17 CQRS Command Query Responsibility Segregation
  • 18. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !18 CQRS Separate command and query services Command Query Event store produce consume DB
  • 19. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !19 Event sourcing with database Working with database Bin log Event storeDB bin log event Binlog or Binary log event is information about data modification made to database Event Event Event
  • 20. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !20 Event sourcing Duplication data (denormalize database) Complexity (separate query and command) Difficult to maintain
  • 21. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !21 Event sourcing can’t solve all problems
  • 22. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !22 Start with understand your purpose
  • 23. Data management in Microservices © 2017 - 2018 Siam Chamnankit Company Limited. All rights reserved. !23 Start with understand your problem to resolve
  翻译: