architecture - Architecting webserver (NginX/Lighttpd/Apache) with couchbase -


i have architectural question i'm hoping of can share me. in past experience, scenario works better high load application/dbase server. i'm using couchbase dbase , 1 of web server (nginx/lighttpd/apache). going hard explain in text hope make sense. scenario preferred?

scenario 1.

client connect webserver master cluster select proper available webserver (machine 2) , (webserver machine 2) connect dbase master cluster in turn select available dbase (dbase 1)

scenario 2.

client connect webserver master cluster select proper available webserver (machine 1) , "machine 1" connect couchbase machine in couchbase cluster that's already assign "dbase 1".

does make sense? thought on preferred method?

i have done in past; , simple

client connects load balancer (which contains multiple machines), load balancer keep incoming load balanced, , make system horizontally scalable.

and either 1 of load balanced servers talk dbase @ couch; sure can create cluster of couch well.

now q. of using nginx or apache; q. must answer "is content getting served via webserver - highly static or dynamic - means coming db" if static chose nginx; if not should go apache.

if using php, may use apc or hip-hop compile php https://developers.facebook.com/blog/post/2010/02/02/hiphop-for-php--move-fast/

there lot of things should take care of while designing scalable system.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -