Service Discovery Microservice Design Pattern Tutorial with Examples for...

Service Discovery Microservice Design Pattern Tutorial with Examples for Software Developers


In this video we will learn about Service Discovery design pattern for microservices. This is the Second design principle in Cross-Cutting concern design patterns category for microservices. The service discovery pattern uses a centralized server named “service registry” to maintain a global view of microservices' network locations. The service discovery pattern is mainly used in microservices applications to find the network locations of microservices. Microservices update their locations (IP address and port) in the service registry at fixed intervals. Clients can connect to the service registry and fetch the locations of microservices. ** Service Discovery Working ** There are 3 participants in the service discovery pattern: 1. Service registry 2. Client 3. Microservice The service registry keeps records of the network locations of the microservices. Microservice instances register themselves and provide their locations to the service registry. Then, clients can find the locations of microservices using the service registry and directly call them to fulfil its need. ** Types of Service Discovery ** 1. Client-side service discovery - In the Client-side service discovery pattern, the client is responsible for finding the network locations of microservices and loading balancing requests between them. First, the client queries the service registry and retrieves the locations. Then, the client uses its dedicated load balancer to select a microservice and sends the request. 2. Server-side service discovery - In this approach, the client does not have a dedicated load balancer. Instead, we have external load balancer acts as a middle man and is responsible for communicating with the service registry. First, the client requests a microservice through the load balancer. Then, the load balancer queries the service registry and finds the location of the relevant microservice. Finally, the load balancer routes the request to the microservice. ** Usage of this Design Pattern ** 1. Use this pattern to have control repository of microservice locations. 2. Use this pattern to avoid restart of dependent services when an IP or port of required service changes. 3. Use this pattern to allow client to discover the location of service automatically at run time. ** Chapter Timestamps ** 0:00 Welcome to Service Discovery design pattern 1:15 Agenda of tutorial 2:18 Introduction of Service Discovery design pattern 4:52 How Service Discovery Works? 6:36 Types of Service Discovery Patterns 11:22 Understanding Service Registry 14:05 Type of Service Registrations in Service Discovery 15:06 Real world examples of Service Discovery design pattern 16:43 Usage of Service Discovery design pattern 17:16 Advantages of Service Discovery design pattern 18:02 Summary of Service Discovery design pattern 19:18 Next video on External Configuration design pattern for microservices #servicediscovery #designpattern #microservice ** CHECK OUT OUR OTHER VIDEOS ** Difference between Monolithic and Microservice Architecture    • Difference betwee...   Spring boot project setup:    • Spring boot Proje...   Spring Boot Microservice with postgres database Project:    • Spring Boot Micro...   Prepare Docker file, Container and Build Image:    • Docker Tutorial f...   Deploy Docker Image AWS Elastic Container Service:    • Deploy Springboot...   Solid Principle Tutorial    • Solid Principles ...   ** CHECK OUR PLAYLISTS ** Microservice Architecture and Microservice Design Patterns Tutorial    • Microservice Arch...   Spring Boot Complete Tutorial    • Spring Boot Tutor...   Docker Containers Complete Tutorial    • Cloud & Container...   Solid Principles Tutorial    • Solid Principles ...   Java Design Pattern Complete Tutorial with Examples    • Java Design Patte...   ** 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. Check out our channel here:    / @codeonedigest   Don’t forget to subscribe! ** OUR WEBSITE ** https://codeonedigest.wordpress.com/ ** GET IN TOUCH ** Email us on codeonedigest@gmail.com 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: https://twitter.com/codeonedigest Facebook: https://www.facebook.com/codeonedigest Instagram: https://www.instagram.com/codeonedigest/ Linkedin: https://www.linkedin.com/in/codeone-d... Website: https://codeonedigest.wordpress.com/

Comments

Popular posts from this blog

Ultimate Guide to Shopify Custom App & OAuth Flow | Create Shopify Custo...

Shopify Inventory Management | Manage Shopify Location & Product Invento...

Spring Boot Microservice with Postgres Database Running in Docker Contai...