0
0
Microservicessystem_design~5 mins

Service discovery concept in Microservices - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is service discovery in microservices?
Service discovery is a method that helps microservices find and communicate with each other automatically without hardcoding network locations.
Click to reveal answer
beginner
Why is service discovery important in microservices architecture?
Because microservices can change locations or scale dynamically, service discovery ensures they can always find each other to work properly.
Click to reveal answer
intermediate
Name two types of service discovery methods.
Client-side discovery, where the client finds services using a registry; and server-side discovery, where a load balancer or proxy finds services for the client.
Click to reveal answer
beginner
What role does a service registry play in service discovery?
A service registry keeps a list of all available service instances and their locations, helping services find each other dynamically.
Click to reveal answer
beginner
Give an example of a popular service discovery tool.
Examples include Consul, Eureka, and etcd, which help manage service registration and discovery in microservices.
Click to reveal answer
What does service discovery help microservices do?
AHandle user authentication
BStore user data securely
CFind and communicate with other services automatically
DManage database transactions
Which component holds the list of available service instances?
AService registry
BAPI gateway
CDatabase
DLoad balancer
In client-side discovery, who is responsible for locating services?
AThe database
BThe client itself
CThe server
DThe network router
Which of these is NOT a service discovery tool?
AConsul
Betcd
CEureka
DRedis
Why can hardcoding service locations be a problem in microservices?
AServices may move or scale dynamically
BIt improves security
CIt reduces network traffic
DIt simplifies client code
Explain how service discovery works in a microservices system and why it is needed.
Think about how services find each other when their addresses change.
You got /5 concepts.
    Describe the difference between client-side and server-side service discovery.
    Consider who is responsible for finding the service in each method.
    You got /4 concepts.