Does backend proxy double the traffic? Is there a way for frontend to implement a proxy connection?

Viewed 11

If I have A (Client) => B (Ngix Server) => C (Proxy) => D (Content) structure, will server B double the traffic of using proxy C ?

Is there a way for the front end to connect to proxy C directly with javascript and then connect to content server D?

Thank you

1 Answers

There are usually requests for static data in a frontend. So nginx can be configured in front of backend (server) and frontend (content), proxying the requests to one or the other instance (or resources) depending on route. An exception can be when your backend logic is allowing access to some content (yet it might be solved by more complex configuration).

Related