Forum Moderators: phranque

Message Too Old, No Replies

database in one country, web host in another

possible to do safely?

         

bill

4:40 am on Apr 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I was just asked about the possibility of having a website, which is hosted in the US, use a back-end PostgreSQL database, hosted in Japan. I know about having databases on different machines within a network, but not across the Internet.

Off the top of my head I questioned the speed and security. However, they wanted to know if it could be done...that's where you guys come in. ;) If this can be done with reasonable security, what would be required?

txbakers

8:50 am on Apr 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



it is definitely possible, after all across the world today is no big deal.

Rather than open the port of the DB to the internet, you might want to look into VPN solutions so that the traffic is secure, and you have to make the connections over the secure network.

bill

7:48 am on Apr 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That sounds within the realm of possibility...but has anyone actually worked with a setup like this?

txbakers

12:29 pm on Apr 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



My ex company did this all the time, but it was a big company and could afford private T1 lines, etc. I'm not sure how I would implement it today being little ole me.

dataguy

3:23 am on May 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I currently do this over over VPN, but most of my data isn't sensitive so I'm working on converting everything to XML, which will ultimately lead to a much less complicated setup.

bill

4:13 am on May 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Do you have any issues with speed in this VPN setup? What sort of connection are you working with?

dataguy

9:27 pm on May 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do you have any issues with speed in this VPN setup? What sort of connection are you working with?

Speed can be an issue, but I'm using a hardware VPN at both ends, built into each firewall/router, so the speed issue is minimal. If I use the software VPN client while on the road, it becomes more of an issue.

I'm using T1 and OC3 connections. The biggest issue I see is that when I need to do a large file transfer, if I do it over VPN it will max out the 1.5 mbit T1 connection, leaving little bandwidth for web site users on that end. This isn't normally a problem for the typical data transfer between sites, and it only occurs when I'm trying to move large files from one server to the other. If I do the transfer over the net without VPN, everything is fine. I suspect that the encrypted data doesn't compress well, and therefore uses more bandwidth, though I've never tried to prove this theory.

As stated before, my data really isn't sensitive, so it could be transfered through XML just as well, and then whatever speed issues there are will be minimized.

Namaste

8:00 pm on May 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



is there a way to compress the data between the database server and the webserver?