-2

I want to seperate my server into two parts: web server and dbserver. My web server is located in Turkey and my dbserver is located in Germany. I cant change my web server because my agreement is based on my Ip adresses. I want to locate my dbserver in Germany because more cheap then Turkey. But... I have a problem in here. When you call a db action, first, you are going to Turkey for IIS and IIS is going to Germany for Dbserver. It is too far and so slow to response back. Any idea? Is it wrong that the distance is so far between web server and dbserver? Or Are there any solutions for this problem?

2
  • 4
    Solution: move it closer.
    – Nathan C
    Oct 17, 2013 at 11:25
  • Jesus. What's the response/ping time between the two servers?
    – tombull89
    Oct 17, 2013 at 11:26

1 Answer 1

3

move your webserver closer to the database, and leave a proxy in Turkey. It can be either an HTTP proxy (like squid, varnish, nginx, etc) or a TCP proxy. In either case, it will look like it's still there.

The advantage is because you will be stretching the HTTP connection, which is meant to cross the world, and keep the DB accesses (which are designed for LANs) local.

1
  • Ok, It seems like usefull, thank you. I will try this.
    – Erkan
    Oct 18, 2013 at 9:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .