Questions tagged [proxy]
24 questions
6
votes
2 answers
Multi Tenancy Aware Gateway routing
Hello Fellow Programmers,
We are converting our monolithic application into microservice based. One challenge which we are facing is that one of our component is stateful. We cannot make this component stateless as of now (Due to high migration…
Tuhin Dey
- 97
5
votes
1 answer
Sharding and application routing cross region on AWS
We current have a very simple Multi Tenant monolith, with a SQL SERVER backend (Self hosted on EC2 on AWS), and multiple application services talking to one DB behind an Classic AWS ELB. Our database has grown to a point now that we are considering…
Joshscorp
- 101
4
votes
4 answers
Pattern for endpoint that routes requests?
I am building a service that will push notifications to many other services. It has a couple of different notification types that each consumer may care about, but likely will not care about all of them.
Instead of requiring many different…
Steve Ellis
- 157
- 2
3
votes
2 answers
Function acting as a shortcut to object's methods
I was reading Python's requests library's code to find out how it works. Since this library has a simple usage interface, it creates a more complex object beyond. For instance:
requests.get(...)
Is a shortcut to something like:
s = Session()
r =…
Jonathan Prates
- 139
3
votes
1 answer
Single Responsibility Principle : Proxy Pattern for refactoring
However, in cases where the tests did not force the separation, and the smells of Rigidity and Fragility become strong, the design should be refactored using
the Facade or Proxy patterns to separate the two responsibilities.
From : Agile Software…
q126y
- 1,733
2
votes
1 answer
How should I handle docker containers and SSL certificates
Background
We have a number of backend api's that do work; some connect to equipment, some store data, etc. The original setup was each service was a native c# asp.net 6 minimal api running on a windows server 2022. I was able to convince the right…
Felix Castor
- 189
2
votes
1 answer
Proxy Pattern in Python
I'm reading a book on design patterns. On proxy pattern the code are following:
class SensitiveInfo:
def __init__(self):
self.users = ['nick', 'tom', 'ben', 'mike']
def read(self):
nb = len(self.users)
print(f"There…
Yehui He
- 21
2
votes
1 answer
Why would I use the proxy instead of direct call to RealSubject?
I'm actually reading about the Proxy design pattern (https://refactoring.guru/design-patterns/proxy) and I'm wondering about what does prevent the Client to call directly the RealSubject class.
I give you this illustration that i've found on this…
Vincent PHILIPPE
- 193
2
votes
1 answer
Is an Adapter pattern a Proxy pattern? If not, why not?
A common use of the adapter pattern is to support functionality that isn't actually supported in an underlying class. For example, if I use an API to interact with a Samsung Smart TV, I might want to add functionality not available through the API.…
moonman239
- 2,063
2
votes
2 answers
Algorithm for implementing QOS in my proxy
Here's the situation: I'm making a proxy (for the moment running on my laptop) which deals with HTTP(S) requests from incoming clients (for the moment only one client, i.e. my Chrome browser on my laptop). It works without troubles, but it is a best…
elmazzun
- 281
1
vote
0 answers
Approach for Proxying WebSocket Secure (WSS) Connections
I'm currently working on a project where I have a WebSocket Secure (WSS) server and a WSS client. The client establishes a WebSocket connection over TLS to the server, which enables bi-directional communication between them. Now, I need to introduce…
ray an
- 111
1
vote
2 answers
Request validation on API proxy
I am creating an API proxy that acts as a bridge between our frontend application and an AWS opensearch server. This proxy has additional features such as retries and timeouts.
One of the features I'm considering is request body validation. This API…
1
vote
0 answers
Implementing Proxy pattern via concrete inheritance
Say I have some code which consumes a class called Subject, which implements ISubject.
Would there be any concerns if I were to build a ProxySubject, which inherits Subject?
I like this style because it makes it so simple to wrap the real subject:…
Ama
- 247
1
vote
1 answer
Split requests between different server applications
I currently have a web server running apache with multiple sites on it using virtual hosts. I want to add a service to my server that is using nodejs but I want it to be accessible under the same domain as a sub-domain. This is, I believe,…
php_nub_qq
- 2,234
1
vote
2 answers
How to "proxify" HTTPS request/response
I hope this question isn't considered to "open-ended"...
The company that I work for is concerned about their image and they would like to have more control about the publications into their official social medias. Two major drivers to achieve: gain…
Bob Rivers
- 191