System Design: Proxies Flashcards

1
Q

What is a proxy (forward proxy)?

A

It is a piece of software or hardware that facilitates the request for resources from other servers on behalf of clients, thus anonymizing the client from the server.

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

What are forward proxies used for?

A

Typically, forward proxies are used to cache data, filter requests, log requests, or transform requests by adding/removing headers. Other uses include:

Anonymizing client IPs, content filtering (eg orgs restrict access to certain sites), bypassing geo location restrictions, malware protection.

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

What is a reverse proxy?

A

It’s the same things as a forward proxy, except a reverse proxy hides the final server that served the request from the client and sits between the client and server (as opposed to the client and internet).

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

What is a reverse proxy used for?

A

A reverse proxy, just like a forward proxy, can be used for caching, load balancing, or routing requests to the appropriate servers.

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

What are key differences between and reverse proxy and forward proxy?

A

Forward proxies are used by clients to access the Internet securely, reverse proxies are used by servers to manage, protect, and optimize incoming requests.

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

Do servers route requests back through load balancers? (Proxies)?

A

Sometimes, like with Nginx.

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

What are some examples of forward proxies?

A

Squid: An open-source caching proxy widely used for HTTP, HTTPS, and FTP traffic.

Nginx: Primarily known as a web server, Nginx can also function as a forward proxy when configured appropriately.

Tor (The Onion Router): While primarily known for its network of volunteer-operated servers providing anonymity, Tor also functions as a forward proxy, routing traffic through multiple layers to obscure origin.

Cloudflare Gateway: Offers secure and managed proxy services for enterprise users, focusing on threat protection and secure internet access.

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

What are some examples of reverse proxies.

A

Nginx – One of the most widely used reverse proxies for load balancing, caching, and security.

AWS Application Load Balancer (ALB) – Handles reverse proxying and traffic distribution in AWS.

Apache HTTP Server (mod_proxy) – Can be configured as a reverse proxy for various protocols.

Cloudflare – Acts as a reverse proxy for security, DDoS protection, and caching.

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

Are responses routed through reverse proxies?

A

Yes

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

Describe and API gateway.

A

See image

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