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

Refactoring a Solr based api application

Refactoring a Solr based api application

Held on Apache Lucene Eurocon 2011 in Barcelona

Torsten Bøgh Köster

April 13, 2012
Tweet

More Decks by Torsten Bøgh Köster

Other Decks in Programming

Transcript

  1. Architectural lessons learned from refactoring a Solr based API application.

    Torsten Bøgh Köster (Shopping24) Apache Lucene Eurocon, 19.10.2011
  2. Contents Shopping24 and it‘s API Technical scaling solutions Sharding Caching

    Solr Cores „Elastic“ infrastructure business requirements as key factor
  3. @tboeghk Software- and systems- architect 2 years experience with Solr

    3 years experience with Lucene Team of 7 Java developers currently at Shopping24
  4. index fact time •16 Gig Data •Single-Core-Layout •Up to 17s

    response time •Machine size limited •Stalled at solr version 1.4 •API designed for small tools
  5. ask the nerds „Shard!“ That‘ll be fun! „Use spare compute

    cores at Amazon?“ breathe load into the cloud „Reduce that index size“ „Get rid of those long running queries!“
  6. ... is highly effective. 125ms 250ms 375ms 500ms 1 4

    8 12 16 20 1shard 2shard 3shard 4shard 6shard 8shard concurrent requests
  7. Sharding: size matters the bigger your index gets, the more

    complex your queries are, the more concurrent requests, the more sharding you need