0
0
Microservicessystem_design~5 mins

Services and networking in Microservices - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a microservice in the context of services and networking?
A microservice is a small, independent service that performs a specific business function and communicates with other services over a network.
Click to reveal answer
beginner
Why do microservices communicate over a network instead of sharing memory?
Because microservices run independently on different machines or containers, they use network communication to stay loosely coupled and scalable.
Click to reveal answer
intermediate
What is an API Gateway in microservices networking?
An API Gateway is a server that acts as a single entry point for clients to access multiple microservices, handling routing, security, and load balancing.
Click to reveal answer
intermediate
Explain service discovery in microservices networking.
Service discovery is the process where microservices find the network locations of other services dynamically, often using a registry to keep track of available services.
Click to reveal answer
intermediate
What role does load balancing play in microservices networking?
Load balancing distributes incoming network traffic evenly across multiple instances of a microservice to improve reliability and performance.
Click to reveal answer
Which component acts as a single entry point for client requests in a microservices architecture?
AAPI Gateway
BService Registry
CDatabase
DLoad Balancer
What is the main purpose of service discovery in microservices?
ATo encrypt communication
BTo store user data
CTo find the network location of services dynamically
DTo balance network traffic
Why do microservices communicate over a network instead of sharing memory?
ABecause sharing memory is faster
BBecause they run independently and may be on different machines
CBecause network communication is less secure
DBecause they use the same database
What does load balancing do in a microservices system?
AStores service configurations
BEncrypts data in transit
CMonitors service health
DDistributes traffic evenly across service instances
Which of the following is NOT a typical responsibility of an API Gateway?
AService discovery
BLoad balancing
CRouting requests
DAuthentication
Describe how microservices communicate and the role of networking components like API Gateway and service discovery.
Think about how independent services find and talk to each other.
You got /3 concepts.
    Explain why load balancing is important in a microservices architecture and how it improves system reliability.
    Imagine many people trying to enter a store at once.
    You got /3 concepts.