Zynga is the largest developer of social games on the Web, with such hugely popular titles as FarmVille, FrontierVille, Mafia Wars, Zynga Poker, Café World, Treasure Isle, YoVille, FishVille, and PetVille. Zynga’s “freemium” business model is simple and effective: Although many of its online games can be enjoyed for free, the company sells virtual goods for real money to its massive user base of gamers.
Staging of Infra
2. The requirement grew ( zero to six million), and they migrated to cloud.
3.And once the platform stabilizes, they know exact requirement, later they move particular application (Ville) to their own private cloud (Z-cloud) from Amazon EC2 server.
ArchitectureZynga uses Apache PHP on the front end, MemBase
Zynga uses LAMMP configuration ( Linux, Apache HTTP server, MemBase
The basic architecture differences arise between social network sites and gaming sites are reads and writes. Games use a lot of writes compared to websites like Facebook.
In 2009, Farmville is using the MemCache+ MySQL, now MemBase (from 2011 onwards) is used in new architecture. This will able to provide optimized read and writes.
- LAMP based web stack
- Game logic in PHP
- HTTP communication
- Game logic in MMO
- Socket connections
- Live Game support data
- High production quality games
- Game logic in client
- Can open socket
- Game is just a webpage
- Limited graphics and animations
- Minimal system requirements
- LAMP stack on the backend
- The server aspects of game simulation are in PHP
MySQL backend, sharded by user id used in an almost purely NoSQL style Memcache layer, again sharded by user id
- A CDN used to serve game assets