I have a back-end server (Apache) that is too far from most of our users, so our idea is to implement a closer reverse proxy that will act as a cache.
At first glance it worked as a charm. The cached static files are served extremely fast, but for anything else, the reverse proxy (NGINX) needs to connect to the back-end server, which takes some time for the SSL handshaking, making these first requests slow.
I was searching for information on this but I couldn't find a way to keep this connection up. Is there a way for doing it?
I've even tried to learn more about websockets, but all implementations I could find were to answer an specific request, not to keep the connection intermediating the both web servers (NGINX at reverse proxy and Apache at back-end).
Does any of you have have any idea or tip about what to study/use/search in order to accomplish that?
Thank you so much in advance!