Skip to main content
7 votes
Accepted

Is an Adapter pattern a Proxy pattern? If not, why not?

The short answer, a proxy is supposed to be transparent. It provides the same interface as the system/object it is proxying. But performs an additional task that is not part of the application logic ...
kamikaze's user avatar
  • 1,080
6 votes
Accepted

Why would I use the proxy instead of direct call to RealSubject?

I'm wondering about what does prevent the Client to call directly the RealSubject class. In general, nothing prevents this. That doesn't mean you don't have mechanisms you can use to prevent this, ...
Philip Kendall's user avatar
5 votes
Accepted

What are the advantages of proxy classes?

Important preliminary remarks First of all, you shouldn't choose a design pattern in a catalogue, because it is trendy or by looking at advantages and inconveniences. You should choose a design ...
Christophe's user avatar
  • 82.2k
4 votes

Proxy Pattern in Python

Using python abstract base classes is super-easy (if you compare it to any other language): https://docs.python.org/3/library/abc.html In the case you mentioned, the proxy pattern allows you to ...
Florin C.'s user avatar
  • 232
3 votes
Accepted

Request validation on API proxy

It sounds like you accept search requests from the general Internet. On the "pro" side you list "won't get overloaded easily", avoiding user-visible interruptions or slowdowns. But ...
J_H's user avatar
  • 7,891
3 votes

Proxying outer calls for backend services

That would be a proxy as well. And indeed, this technique is often used in high-security industries to monitor and restrict access to the resources outside the company—it could be as well a generic ...
Arseni Mourzenko's user avatar
3 votes

What are the advantages of proxy classes?

A note on terminology: What you are talking about isn't called a proxy. The most common name used for it is "pImpl", being a shortening of "Pointer to Implementation". It is a pattern particular to ...
Caleth's user avatar
  • 12.4k
2 votes

Sharding and application routing cross region on AWS

Main grey area, what can I do when the route goes to the wrong Region/Db? Re-rout them to the right DB. Seems simple. But... Tenant 1 went to USA for a holiday and tried to access www.domain.com, ...
candied_orange's user avatar
2 votes

Proxying outer calls for backend services

To augment Arseni's excellent points... Another term you might hear is Wrapper: taking some technology specific / 3rd party code and wrapping it with a thin layer of your own code, which the rest of ...
Adrian K's user avatar
  • 298
2 votes

Request validation on API proxy

It seems the general issue here is the potential overloading of the backend services. Sure you might use horizontal autoscaling to "absorb" the extra load, but I would not recommend this if: ...
Jas's user avatar
  • 6,314
2 votes
Accepted

How should I handle docker containers and SSL certificates

I think i would have to say that best practice here is to use an application gateway to do the ssl and not have any ssl on the containtered services themselves. ie client -> https -> app gateway ...
Ewan's user avatar
  • 84.4k
2 votes
Accepted

Multi Tenancy Aware Gateway routing

The standard solution to this problem is to use DNS. If you imaging your sharded service as being provisioned by multiple nodes, and each node could fail and be replaced independently then, its normal ...
Michael Shaw's user avatar
  • 10.1k
1 vote

Multi Tenancy Aware Gateway routing

I am currently working on a layout for a multi-tenant, multi-cloud-provider capable microservices architecture that might work for your needs as well. We're using internally maintained DNS servers to ...
Eric Evans's user avatar
1 vote
Accepted

Split requests between different server applications

As you have described the problem, yes your assumptions are correct. Both NGINX and Apache are built to do this in a very performant way. mod_proxy in Apache or proxy_pass in NGINX are likely to be ...
Paul's user avatar
  • 3,347
1 vote

Pattern for endpoint that routes requests?

A bit late, but anyways. You already answered yourself. The integration pattern or strategy you describe sounds like Pub/Sub a service that will push notifications to many other services Commonly ...
Laiv's user avatar
  • 15k
1 vote

Pattern for endpoint that routes requests?

As long as you're putting the type into the data and not baking it into the URL, then using the type instead of knowledge about endpoints is considered a Best Practice and is an important part of ...
RubyPanther's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible