Questions tagged [proxy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
70 views

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 ...
lightning_missile's user avatar
2 votes
1 answer
2k views

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 ...
Felix Castor's user avatar
0 votes
0 answers
108 views

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 ...
LazarQt's user avatar
1 vote
1 answer
117 views

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): ...
Yehui He's user avatar
0 votes
0 answers
46 views

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 ...
Marek Urbanowicz's user avatar
6 votes
2 answers
597 views

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 ...
Tuhin Dey's user avatar
2 votes
1 answer
183 views

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 ...
Vincent PHILIPPE's user avatar
1 vote
0 answers
209 views

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 ...
Ama's user avatar
  • 247
0 votes
2 answers
768 views

What are the advantages of proxy classes?

I've been learning about proxy classes in c++. I really don't see the advantages of using proxy classes, as they're not any better at concealing information than private members are. What advantages ...
Pika Supports Ukraine's user avatar
5 votes
1 answer
826 views

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 ...
Joshscorp's user avatar
  • 101
2 votes
1 answer
528 views

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 ...
moonman239's user avatar
  • 2,053
-2 votes
1 answer
262 views

Linux Server Hosting through Cloudflare [closed]

I hosted a hobby NodeJS Server from my Linux and all is fine by accessing my direct IP. Because I find this ugly and also less secure, I decided to route my domain which is set to Cloudflare to my IP....
Desmond's user avatar
  • 13
0 votes
1 answer
2k views

Understanding a proxy server and connecting to a web api via basic auth

Hopefully this is the correct channel for such a question and my quest for further knowledge. I've currently built a significant platform which allows clients to communicate with our API, which in ...
Tez Wingfield's user avatar
1 vote
1 answer
304 views

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 ...
php_nub_qq's user avatar
  • 2,214
0 votes
1 answer
135 views

What are the options to guarantee that a client that's connecting to a server is really who I think it is?

I have a proxy server that talks to a bunch of services and I want to have a way to prove to servers behind the proxy they are actually receiving a request from the proxy server and not from something ...
Maurício Linhares's user avatar
0 votes
1 answer
1k views

407 Proxy authentication required

Are we supposed to write code differently to handle running through a system proxy for Http requests? I have developed an application which uploads many files from a clients network over the internet ...
SeanOB's user avatar
  • 101
1 vote
2 answers
871 views

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 ...
Bob Rivers's user avatar
4 votes
4 answers
720 views

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 ...
Steve Ellis's user avatar
3 votes
2 answers
169 views

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 ...
Jonathan Simon Prates's user avatar
2 votes
2 answers
150 views

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 ...
elmazzun's user avatar
  • 281
3 votes
1 answer
572 views

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 ...
q126y's user avatar
  • 1,713