API Gateway vs. Reverse Proxy Flashcards

(9 cards)

1
Q

What do API Gateways and Reverse Proxies have in common?

A

They both manage incoming requests.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What’s the purpose of an API Gateways?

A

It serves as a single point of entry, typically in microservice architectures to manage and route requests to the appropriate services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are a few primary characteristics of an API Gateways? (Name 4)

A

They provide:

  • Routing (to appropriate microservices)
  • Aggregation (from multiple routed responses)
  • Cross-cutting Concerns (handling authentication, authorization, rate limiting, etc.)
  • Protocol Translation (translate between different protocols)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the purpose of a Reverse Proxy?

A

It’s a server proxy that retrieves resources for a client from one or more servers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the primary characteristics of a Reverse Proxy? (Name 4)

A

They are:
- Load Balancing (distributes traffic across multiple services)
- Security (privacy by nature, server anonymity)
- Caching (cached content to reduce load)
- SSL Termination (SSL decryption instead of relying on each server to do that)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What’s a common use case for a Reverse Proxy?

A

A common single point for handling cross-cutting concerns for monolithic or microservice architectures like security, caching, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do API Gateways and Reverse Proxies differ in their roles?

A

API gateways focus on application-level traffic. Reverse proxies focus more on network or cross cutting concerns.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do API Gateways and Reverse Proxies differ in terms of complexity?

A

API Gateways tend to be more complex or support more complicated features (request transformation, rate limiting, etc.).

Reverse proxies tend to be simpler as they focus on network-level objectives like efficiency and security (cross cutting concerns)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

At a high level describe an API Gateway and Reverse Proxy (in terms of what they both do, and how they are different)

A

Both are components that manage traffic in a system. API gateways focus more on routing and orchestrating traffic to the appropriate sources whereas Reverse Proxies generally focus on high level/cross cutting concerns like efficiency.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly