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

MongoDB at IronMQ | Alexander Kolesen

MongoDB at IronMQ | Alexander Kolesen

Alexander Kolesen
Meetup #7

Minsk MongoDB User Group

October 04, 2012
Tweet

More Decks by Minsk MongoDB User Group

Other Decks in Programming

Transcript

  1. MongoDB at IronMQ Alexander Kolesen IronMQ create queue POST message

    into queue GET message(s) from queue DELETE message from queue
  2. MongoDB at IronMQ Alexander Kolesen IronMQ Written on Go (high

    scalable, in/out) Client libs: Ruby, Python, PHP, Go, Java, Clojure, .NET, RESTful HTTP API
  3. MongoDB at IronMQ Alexander Kolesen IronMQ Limitations Max message size:

    64KB Max expiration time: 30 days Max msg count per GET: 100 250,000 message requests per month free
  4. MongoDB at IronMQ Alexander Kolesen MongoDB Performance (IronMQ) Internets lie,

    don’t trust tests You have to test it by yourself ⇠5000 IronMQ requests/s ⇠90% ‘locked‘ state
  5. MongoDB at IronMQ Alexander Kolesen Sharding Topology (1) RS on

    highmem instances 3 ‘config‘/‘mongos‘
  6. MongoDB at IronMQ Alexander Kolesen Sharding Topology (2) RS on

    highmem instances 3 config servers on RS slaves ‘mongos‘ on each instance
  7. MongoDB at IronMQ Alexander Kolesen Choosing Shard Key That’s very

    important! Shouldn’t choose monotonically increasing key Just revert it!