On 22 Jun 2011, at 19:51, Mike Vogt wrote:
Are there any 'bits of wisdom' on using 4D Client as Web server?
I think I can answer a few of these, having been running a major
eCommerce site for years on 4D CLient (since v6).
Essentially, everything behaves nicely as if it was running on 4D
single. The Active4D scope (session variables etc) is the local
machine - just as with single user. (In fact at one point we had 3 web
servers running completely separate websites with separate domains,
each with their own Active4D installation but all running off a common
4D server).
You have a lot of advantages, in particular that the data server stays
up whatever reliability issues you have on the client (web server).
Also, the web server can take a pounding without significantly taxing
the data server (or vica versa - the aggregated querying load from all
web processes is all passed to the data server instead of taking up
CPU cycles on client workstation).
Another advantage is that you can use a second client as a maintenance
client leaving the production web server free to get on with serving
pages.
Are there any functional different behaviors such as triggers that
might behave differently when Active4D is on client as opposed to
server?
No - the data server isn't aware that your running Active4D on the
client. The updates might as well have come from a 'real' user.
On 22 Jun 2011, at 19:51, Mike Vogt wrote:
Is performance inherently slower because of the client-server
connection?
Yes - if you are serving images dynamically from the database. We have
a routine which writes an image cache onto the desktop and the web
server serves them from there. Apart from that there's no significant
performance hit as long as you have decent hardware.
h.t.h.
Peter
P.S. I have never been able to believe that people run major ecommerce
systems on a single machine. I imagine it crashing periodically and
corrupting the data. I'm always amazed that folks do it and get away
with it. So while running a website client-server may seem
'exceptional', it's the norm to me and I wouldn't do it any other way.
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/