In centralized authentication, a dedicated server handles login and issues tokens. Microservices trust these tokens instead of verifying credentials themselves.
Distributed systems often use signed tokens (like JWT) that services can verify locally using a shared secret or public key, avoiding central validation calls.
Centralized authentication means all login requests go to one server, which can slow down or fail under heavy load, affecting the whole system.
Centralized auth is easier to manage but can slow down under load. Distributed auth scales better but needs more complex token verification and key management.
Each user makes 1 request per second. If each request touches all 100 services and each service validates the token, total validations = 10,000 users * 1 req/sec * 100 services = 1,000,000 validations/sec.