RailsConf 2008: Friday Early Afternoon
30 May 2008Dialogue Concerning the Two Chief Modeling Systems
- it’s a Play
(again you should read the slides)
- choosing the right name will make the dev think about this model and give it the right property
- Jim keeps saying we’re skipping layers
- using story cards
- jammed up over reoccurring events
- objects = data + behavior, so you can’t just talk about the data (rows/tables), you must look at behavior
- pull out the Class, Responsibilities, and Collaborator cards
- card only useful for organizing your thoughts not need to fill them all out
- “temporal expressions”
- CJ Date: apparently wrote a lot about data modeling
- Code Smell in Refactoring by Chad Fowler
Flexible Scaling: How to Handle 1 Billion Pageviews – TJ
- WoW: you see all kinds of human behaviors: Mafia, Philantropis
- Building games on Facebook
- He’s the author of Warbook: Rise of the Infernals
- w/i a week he had to fix stuff
- w/i 3 weeks had to rewrite
- started with firebug’s net tab
- look at your logs: pl_analyze
- iostat
- you need tools, but you also need strategies
- don’t need it? ditch it.
- slowing it down? simplify it.
- logging it? stop
- selecting it? cache it.
- memcache
- put sessions in cache
- no-select design
- use memcache
- cache_fu already does this
- using ec2
- 1 db box
- 1 memcache box
- 1 static file
- X mongrel boxes
- The Hard Part
- Scale Everything Else
- Scale your deploymnet
- use capistrano
- Scaling your support
- community management
- give them updates every day
- server cost $2000 a month
- you need money
- warbook makes $100,000/month
- 1.5 million users
- 16 million page views
Q&A
- remove transactional saves
- save per fields
- how to solve the persistence problem on ec2? db not on amazon
- which facebook lib? started with rfacebook, facebooker, bebo