Reader small image

You're reading from  Building Microservices with Node.js

Product typeBook
Published inMay 2024
Reading LevelIntermediate
PublisherPackt
ISBN-139781838985936
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Daniel Kapexhiu
Daniel Kapexhiu
author image
Daniel Kapexhiu

Daniel Kapexhiu is a software developer with over 6 years of working experience developing web applications using the latest technologies in frontend and backend development. Daniel has been studying and learning software development for about 12 years and has extended expertise in programming. He specializes in the JavaScript ecosystem, and is always updated about new releases of ECMAScript. He is ever eager to learn and master the new tools and paradigms of JavaScript.
Read more about Daniel Kapexhiu

Right arrow

Database integration and continuous integration and deployment

Database integration and continuous integration/continuous deployment (CI/CD) are critical aspects of a microservices architecture. They ensure that data is managed effectively and that changes to microservices are deployed efficiently and reliably.

Database integration

In a microservices architecture, each microservice typically has its own database or data store. This separation of data is known as database per service.

Here are some key considerations for database integration in microservices:

  • Data consistency: To ensure data consistency, three approaches are commonly used – two-phase commits, distributed transactions, and eventual consistency:
    • Two-phase commits: Two-phase commit (2PC) is a protocol that ensures atomicity and consistency in distributed transactions. It involves coordinating multiple participants or resources to decide whether to commit or abort a transaction. The protocol consists...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Building Microservices with Node.js
Published in: May 2024Publisher: PacktISBN-13: 9781838985936

Author (1)

author image
Daniel Kapexhiu

Daniel Kapexhiu is a software developer with over 6 years of working experience developing web applications using the latest technologies in frontend and backend development. Daniel has been studying and learning software development for about 12 years and has extended expertise in programming. He specializes in the JavaScript ecosystem, and is always updated about new releases of ECMAScript. He is ever eager to learn and master the new tools and paradigms of JavaScript.
Read more about Daniel Kapexhiu