Getting a product to be ready is fine but when you have a thousand users using your website at the same time going to be an issue
The basic reason we are into rails and product development is to that one day we can have a product that gets a million users at the same time
Should we be ready for that
So how do you start achitecting so tht scalling is done from the start.
By using different instances? One for database, one for application server? Is this approach the best?
Beyond extremely basic things like making sure your database tables have indices, I pretty much ignore this entirely until I have real data that shows that thereโs a performance problem (like NewRelic traces).
Trying to guess what your bottlenecks will be is usually premature optimization.
One exception to this is if Iโm deploying a new service into an already-busy environment. In that case, Iโd probably do a bit of load testing using ab (apache benchmarking tool).