Database per Service Design Pattern for Microservices with Examples for Beginners

Опубликовано: 07 Октябрь 2024
на канале: codeonedigest
593
17

In this video we will learn about Database per Service design pattern for microservices. This is the 1st design principle in Database design patterns category for microservices.

Database per service offers data privacy, data resiliency and loose coupling in your application. Loose coupling is the key characteristic of a microservices architecture hence microservice should store their information from its own data store. This pattern provide flexibility to choose the most appropriate data stores i.e., relational or non-relational databases for your application and business requirements.

According to this pattern, microservices don't share a database. Changes in dedicated database doesn't impact other microservices. Data storage of a microservice cannot be directly accessed by other microservices. Data can be access only by APIs. Dedicated data storage improves resiliency, security, privacy of your application. This pattern also rules out the possibility of single point failure. Loose coupling is the core characteristic of a microservices architecture, because each individual microservice can independently store and retrieve information from its own data store.

** Usage of this Design Pattern **
1. Use this pattern when you want Loose coupling between your microservices.
2. Use this pattern when Microservices have different compliance or security requirements for their databases.
3. Use this pattern when you want More granular control of scaling is required.

** Advantages of this Design Pattern **
1. Each database can scale independently.
2. If one database server is down, this will not affect to other services.
3. This pattern ensures services are loosely coupled. Changes to one service’s database does not impact any other services.
4. Each service can use the type of database that is best suited to its needs. For example, a service that does text searches could use Elastic Search. A service that manipulates a social graph could use Neo4j.
5. Polyglot data persistence gives ability to select the best optimized storage needs per microservices.


** Chapter Timestamps **
0:00 Welcome to Database per Service design pattern
1:08 Agenda of tutorial
2:11 Introduction of Database per Service design pattern
3:22 Real world examples of Database per Service design pattern
5:47 Usage of Database per Service design pattern
7:00 Advantages of Database per Service design pattern
8:53 Summary of Database per Service design pattern
9:43 Next video on Database per Service design pattern for microservices

#microservices #databaseperservice #designpatterns

** CHECK OUT OUR OTHER VIDEOS **
Client-side UI composition Design Pattern    • Client-side UI Composition Design Pat...  
Difference between Monolithic and Microservice Architecture    • Difference between Microservice & Mon...  
Spring boot project setup:    • Spring boot Project Step by Step Tuto...  
Spring Boot Microservice with postgres database Project:    • Spring Boot Microservice Project with...  
Prepare Docker file, Container and Build Image:    • Docker Tutorial for Beginners | Creat...  
Deploy Docker Image AWS Elastic Container Service:    • Deploy Springboot Microservice Docker...  
Solid Principle Tutorial    • Solid Principles Tutorial with Java C...  

** CHECK OUR PLAYLISTS **
Microservice Architecture and Microservice Design Patterns Tutorial    • Microservice Architecture & Microserv...  
Spring Boot Complete Tutorial    • Spring Boot Tutorial with Project Set...  
Docker Containers Complete Tutorial
   • Cloud & Container Tutorial with AWS C...  
Solid Principles Tutorial    • Solid Principles Tutorial | Single Re...  
Java Design Pattern Complete Tutorial with Examples    • Java Design Patterns for Student | Ga...  


** ABOUT OUR CHANNEL **
CodeOneDigest is a youtube channel that produces videos on programming languages, cloud and container technologies, Software design principles, Java frameworks in English and Hindi languages.
Dosto, CodeOneDigest youtube channel pe aapko programming languages, container technology, cloud computing, software engineering se related videos milenge.

Check out our channel here:
   / @codeonedigest  
Don’t forget to subscribe!

** OUR WEBSITE **
https://codeonedigest.wordpress.com/

** GET IN TOUCH **
Email us on [email protected]

FOLLOW US ON SOCIAL - LIKE, SHARE & SUBSCRIBE
Get updates or reach out to Get updates on our Social Media Profiles!
Subscribe: https://bit.ly/3NeWQ8U
Youtube:    / @codeonedigest  
Twitter:   / codeonedigest  
Facebook:   / codeonedigest  
Instagram:   / codeonedigest  
Linkedin:   / codeone-digest-10b418255  
Reddit:   / codeonedigest  
Github: https://github.com/codeonedigest
Website: https://codeonedigest.wordpress.com/
Tumblr: https://www.tumblr.com/codeonedigest
Pinterest:   / codeonedigest