Skip to content

Instantly share code, notes, and snippets.

@jraines
Created May 17, 2011 18:30
Show Gist options
  • Save jraines/977062 to your computer and use it in GitHub Desktop.
Save jraines/977062 to your computer and use it in GitHub Desktop.
Notes on Adam Keys' presentation "Mixing a persistence cocktail"
  • Marshaling AR objects: dangerous if internal structure of AR object changes with Rails change

Relaxing consistency requirements

  • Is it ok for users to see slightly older data?

Configuring

  • Initializer that loads yaml file that loads different connections per Rails environtment

Versioned Keys

Read-repair

Instrument and log everything

  • Wrap connection library in instrumentation module to give you analysis while in dev mode
  • Throw good exceptions so you can grep logfiles.
    #get this code from @realadamkeys

Feature switches, progressive rollout

  • Will this new thing melt my db?
  • Use the 'rollout' gem
  • Activate new features by user group or by percentage of users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment