0
0
Microservicessystem_design~5 mins

Centralized vs distributed auth in Microservices - Quick Revision & Key Differences

Choose your learning style9 modes available
Recall & Review
beginner
What is centralized authentication in microservices?
Centralized authentication means all user login and identity checks happen in one place, like a single service or server, which issues tokens or session info for other services to trust.
Click to reveal answer
beginner
What is distributed authentication in microservices?
Distributed authentication means each microservice handles its own user identity checks independently, often by validating tokens or credentials without relying on a single central service.
Click to reveal answer
intermediate
Name one advantage of centralized authentication.
It simplifies user management because all login logic and user data are in one place, making it easier to update and secure.
Click to reveal answer
intermediate
Name one challenge of distributed authentication.
It can be complex to keep user data consistent and secure across many services, and each service must implement authentication logic correctly.
Click to reveal answer
intermediate
How does token-based authentication support distributed auth?
Tokens like JWTs carry user identity and permissions, so services can verify them locally without calling a central server every time.
Click to reveal answer
Which is a key feature of centralized authentication?
AEach microservice stores user passwords locally
BNo tokens are used for identity
COne service handles all user login and issues tokens
DUsers authenticate separately to each service
What is a common token format used in distributed authentication?
AHTML
BJWT (JSON Web Token)
CCSV
DXML
Which is a disadvantage of centralized authentication?
ASingle point of failure
BHard to manage user data
CEach service must implement login logic
DNo token support
In distributed authentication, how do services verify user identity?
ABy ignoring authentication
BBy calling a central login server every time
CBy storing passwords in each service
DBy checking tokens locally
Which scenario favors centralized authentication?
AWhen you want simple user management
BWhen services are highly independent
CWhen you want no single point of failure
DWhen each service has different user databases
Explain the main differences between centralized and distributed authentication in microservices.
Think about where login happens and how services trust user identity.
You got /5 concepts.
    Describe advantages and challenges of using token-based authentication in distributed systems.
    Focus on how tokens help services trust users independently.
    You got /5 concepts.