Z
Z
zar0ku12011-12-10 15:31:13
Web servers
zar0ku1, 2011-12-10 15:31:13

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?
image_4ee3507bacc30_small.jpg

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Vidog, 2011-12-10
@Vidog

Look towards nginx. nginx.org

1
1nd1go, 2011-12-10
@1nd1go

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.

P
phasma, 2011-12-10
@phasma

squid?

A
AstonMartin, 2011-12-11
@AstonMartin

Maybe it's easier to move the server to where the cheap channel is (to Moscow for colocation)?

S
shadowalone, 2011-12-11
@shadowalone

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 question

Ask a Question

731 491 924 answers to any question