Answer the question
In order to leave comments, you need to log in
Caching proxy for the site?
Hello, a
city web server of an entertainment resource is
given
a wide unlimited channel around the city (cheap)
a narrow channel to the world (expensive) problem the
resource has become popular and the channel to the world is “clogged”, users from other cities complain that the site either takes a long time to open or does not the whole idea opens up to
organize a caching proxy server (mirror?) in Moscow, so that everyone from the city gets access directly to the web server, and who doesn’t - through the proxy
scheme, the question is about the
same with what and how can this be implemented?
Answer the question
In order to leave comments, you need to log in
What do you want to cache? It may be better for you to make a replicating cluster out of databases and place its second node with the application in another city.
Maybe it's easier to move the server to where the cheap channel is (to Moscow for colocation)?
I would act as follows:
1. in DNS I made a view for the city and the world.
2. I took a server with a cheap channel outside the city.
3. Nginx caching statics for 1d, dynamics for 15-30m.
Compiling an nginx config is not difficult, and here they can tell you and there is a lot of information on the net.
Ideally, of course, it would be better to do the opposite, put the main server on a cheap channel, but just for the city, do it on nginx with a cache. IMHO
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question