Re: 2 web servers serving same pages
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Wed, 09 Apr 2008 17:41:52 -0400
plenty900@xxxxxxxxx wrote:
This is not recommended unless the PHP does not modifications to the
pages or a database. Unless you put logic in the php code to check for
simultaneous access, you're libel to get weird and unpredictable results
of the two servers attempt to modify the same thing at the same time.
My impression is that every SQL access would have to be
surrounded by LOCK TABLES and UNLOCK TABLES commands.
But regarding sessions, it occurs to me that if a user
does one access and it goes to server A, and the next
access goes to server B, each server could have different
session info for that user.
Hit the button too fast...
What you do have to watch out for is changes to the file system other than through the SQL database. This can get you into more trouble - but again, you need to be careful anyway, even in a single server environment. But you are more likely to have problems in this area than anywhere else.
Just follow good multitasking programming practices and you should be ok.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- References:
- 2 web servers serving same pages
- From: plenty900
- Re: 2 web servers serving same pages
- From: plenty900
- 2 web servers serving same pages
- Prev by Date: Re: Problems with matching on last element in array
- Next by Date: Re: 2 web servers serving same pages
- Previous by thread: Re: 2 web servers serving same pages
- Next by thread: Re: 2 web servers serving same pages
- Index(es):