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

Spacelog (part one)

Spacelog (part one)

My half of a presentation that James Aylett and I gave at Oxford Geek Nights (early on in 2011).

Andrew Godwin

October 22, 2011
Tweet

More Decks by Andrew Godwin

Other Decks in Programming

Transcript

  1. Spacelog
    James Aylett & Andrew Godwin
    Oxford Geek Night 20

    View Slide

  2. /dev/fort
    Because normal holidays just don't have enough work in them.
    Picture: Matt Ogle

    View Slide

  3. View Slide

  4. View Slide

  5. OCRd, Scanned, Typewritten

    View Slide

  6. It's text. It should be diffable.

    View Slide

  7. Text files. They're webscale.

    View Slide

  8. Everything in one directory.

    View Slide

  9. Text files are "indexed" into Redis

    View Slide

  10. Our site is embarassingly cacheable.
    Scott Beale / Laughing Squid

    View Slide

  11. Two Redis databases - index into one
    while we serve from the other

    View Slide

  12. Varnish and CloudFront to make the
    server a lot happier

    View Slide

  13. Django
    Redis (redis-py)
    Xapian

    View Slide

  14. Django
    Redis (redis-py)
    Xapian
    Not Too Much JavaScript

    View Slide

  15. Django
    Redis (redis-py)
    Xapian
    Not Too Much JavaScript
    A little bit of evil

    View Slide

  16. View Slide

  17. Lessons

    View Slide

  18. Build sites without user state
    That pesky login system just gets in the way.

    View Slide

  19. Only use old content
    The further before the UNIX epoch the better.

    View Slide

  20. Coal fires can be quite smoky
    Open some windows, or just run away

    View Slide

  21. Hollywood is often wrong
    Don't trust their dramatisation of history.

    View Slide

  22. Fin.
    Hold 1 on that next talk, Aquarius.

    View Slide