Yesterday we attended the geekSessions at City Club in downtown San Francisco. This event is pretty new and we were happy that we still got tickets (all of the 150 tickets were sold out on Monday). geekSessions will be held every month and they started it in June 2007.So, we were at the second geekSessions event and this months topic was Web Infrastructure: Surviving The “Hockey Stick” . The event began at 6:00 pm and after some networking around 6:30 pm the panel started. The speakers were Sandy Jen - founder of Meebo, Nick Heyman from VideoEgg, Ron Gorodetzky from Digg and Jonathan Abrams - the founder of Friendster and Socializr. They were talking about their experience how keeping a web infrastructure alive and thriving when demand goes through the roof.Here are some pieces of advice from the panelists:
- build your web application and look how people adopt it
- listen to your customers
- keep it simple and stupid (i.e. always choose the easiest solution)
- track your costs (especially expenses for servers can be huge, when your user base of your web app starts to grow rapidly)
- if you are not the best person for the job, find the right person for that job
- if (server or scaling) problems appear, find out why it happens
- light-weight non-sticky sessions can help
- cache as much as you can (memcached was mentioned by almost all panelists)
- decouple slow processes from the web app
- segment your database (vs. replication and load balancing)
- scale up not out
- avoid queries in loops (no brainer)
- MySQL replication is not good for scaling