Questions tagged [proxy]

20 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
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
  • 6
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…
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 =…
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…
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
  • 1
  • 10
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,023
  • 4
  • 18
  • 23
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
  • 271
  • 2
  • 7
1
vote
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
  • 11
  • 2
1
vote
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…
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
  • 7
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,204
  • 4
  • 17
  • 25
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
  • 6
0
votes
0 answers

How to avoid duplicate code when working with SOAP proxy classes in different environments?

It's been a long time since I worked with SOAP so my question might be trivial but I just wasn't able to find a satisfying answer so far! Anyways here's what's going on: I got access to a system via SOAP endpoints (Dev, Test and Prod) I used…
LazarQt
  • 1
  • 1
0
votes
0 answers

Serving hundreds of domains from one application with HTTPS

I am building an application which will provide users with custom pages served under the subdomain within my application domain. What I want to do as next step is to allow users to create CNAME which can point their subdomain. The issue which I see…
1
2