How many AMAZON EC2s should I start with for a Facebook Application?
So I am in the midst of doing a very private MVP type of roll-out of an application: I need to run Apache + Glassfish + PostGre + MongoDB + Memcache + ActiveMQ ( a java messaging server). I fully realize that I might have gone overboard: I started with Memcache + PostGres and then I started dabbling with MongoDB and liked what it did especially for social graph data. Should I put it all in one big EC2 or should I split it among multiple EC2. MongoDB pretty much mandates at least 2 EC2 instances ( for replication). Any suggestions ?
10 comments
[ 4.2 ms ] story [ 38.5 ms ] threadI would start with one instance. When the load gets high you can switch to a larger model. When you have collected some performance data, you can better decide how to scale.
To give you some idea. I have a fb app running on my platform, that got 82000 visits last month. The avg response time is under 500ms. The instance runs on 2 cores.
https://mongohq.com
So a few questions: 1) Can you vaguely tell us the nature of the app you are building? 2) Is it transaction heavy? How much data do you expect? 3) How many users are we talking about?
EDIT: Curiosity is due to the software stack being used.