Grokking System Design Fundamentals
Ask Author
Back to course home

0% completed

Vote For New Content
Ricardo Franco
Service discovery

Ricardo Franco

Nov 23, 2023

If the API Gateway is the router, why do clients need service discovery to access the services?

4

0

Comments
Comments
LeafarBlu BR
LeafarBlu BRa year ago

The clients would not need it, but the API Gateway yes. With service discovery, the API Gateway can use the service discovery to define the target for a request, considering that the services and instances available can change dynamically.

On this page

Key Usages of API Gateways

  1. Request Routing
  1. Aggregation of Multiple Services
  1. Security Enforcement
  1. Load Balancing
  1. Caching Responses
  1. Protocol Translation
  1. Monitoring and Logging
  1. Transformation of Requests and Responses
  1. API Versioning
  1. Rate Limiting and Throttling
  1. API Monetization
  1. Service Discovery Integration
  1. Circuit Breaker Pattern Implementation
  1. Content-Based Routing
  1. SSL Termination
  1. Policy Enforcement
  1. Multi-Tenancy Support
  1. A/B Testing and Canary Releases
  1. Localization and Internationalization Support
  1. Reducing Client Complexity

Real-World Example: Netflix

Conclusion