Jump to content

[SOLVED] Can I have your idea which is better?


bluejay002

Recommended Posts

hey guys,

 

I was thinking back again bout 3-tier architecture - normally web are like this (say, client <-> web_server <-> dbase_server). But I just thought that this kind of architecture might vary. Which is a better use of this architecture?

 

A user from russia accessing a website with:

 

(a) web_server in alaska and dbase_server in alaska

(b) web_server in russia and dbase_server in alaska

 

Given, they were using VPN whenever accessing the dbase_server.

 

of course, it is better if both web_server and dbase_server are in russia, so i will put that out of the question.

 

IMHO, (a) is better since communication between web_server and dbase_server is better closer than with the user... am I right?

 

Sorry if this is not a PHP question but does not know where to post this though, lol. Anyway, just wanna ask if my understanding is correct and this place seems to have a lot of gurus. :)

Link to comment
Share on other sites

A, generally. For example, if you needed to look up the name of a video in a database, and then let the user download the full movie, then B would be faster. This is also assuming that location is the only thing playing a role in the speed, since a web server in a Tier 3 datacenter in russia can still be faster to a person in New York than a web server sitting on my desk 200 miles away.

 

Also, not PHP related.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.