Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Crowdpark Backend Architecture

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Crowdpark Backend Architecture

Avatar for Francis Varga

Francis Varga

October 25, 2012
Tweet

More Decks by Francis Varga

Other Decks in Programming

Transcript

  1. Tracking / Metrics Game - Backend External Services Flash -

    Frontend HTML / JS - Frontend 3 Friday, October 26, 12
  2. Tracking / Metrics External Services Game - Backend Flash -

    Frontend HTML / JS - Frontend 4 Friday, October 26, 12
  3. Tracking / Metrics External Services Game - Backend Flash -

    Frontend HTML / JS - Frontend 4 Friday, October 26, 12
  4. Tracking / Metrics External Services Game - Backend Flash -

    Frontend HTML / JS - Frontend Json-Rpc 4 Friday, October 26, 12
  5. Game - Backend Rpc External Services HTTP Facebook: 300MS. -

    3SEC. - ~900MS. Sendgrid: 500MS. - 5SEC. - ~1.7SEC. Urbanairship: 200MS. - 1.3SEC. - ~700MS. External Call: 1SEC. - 5SEC. - ~2.7SEC. 6 Friday, October 26, 12
  6. Game - Backend Rpc External Services HTTP railgun Async System:

    - beanstalkd - json-rpc API 7 Friday, October 26, 12
  7. External Services HTTP JSON-RPC Bulk Support beanstalkd Worker Worker Worker

    Cloudformation - Autoscaling Job Job Job EC2 8 Friday, October 26, 12
  8. Rpc External Services HTTP >1 Mio. emails >1 Mio. open

    graph calls <1 Days 15MS. - 50MS. JSON-RPC Bulk Support 9 Friday, October 26, 12
  9. Couchbase Views 2 - User Data - Player Data -

    Session Data 12 Friday, October 26, 12
  10. Couchbase Tracking / Metrics - tracking - logging - complex

    views - map & reduce - multiple games tracking / logging data 13 Friday, October 26, 12
  11. Couchbase Tracking / Metrics Couchbase Replication - easy merging of

    game data - application CBC is smaller 14 Friday, October 26, 12
  12. Architecture Overview • AWS • CDN -> Cloudfront • Webserver

    -> EC2 • Couchbase -> EC2 • Storage -> S3 • Monitoring • New-Relic (http://newrelic.com) • DataDog (http://datadoghq.com) • PHP 5.3 -> Nginx -> PHP-FPM 16 Friday, October 26, 12