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

Horrors of Distributed Systems

Horrors of Distributed Systems

A talk I gave at DjangoCon AU 2017.

Andrew Godwin

August 04, 2017
Tweet

More Decks by Andrew Godwin

Other Decks in Programming

Transcript

  1. Hi, I’m Andrew Godwin • Django core developer • Senior

    Software Engineer at • Channels is a thing, I guess?
  2. Disks & RAM Enterprise SSDs Bit flips after as little

    as a week unpowered Non-ECC memory 1 bit flip per gigabyte EVERY TWO HOURS 32GB of RAM is experiencing a bit flip every FOUR MINUTES Source: Schroeder, Bianca; Pinheiro, Eduardo; Weber, Wolf-Dietrich (2009). "DRAM Errors in the Wild: A Large-Scale Field Study" Source: Alvin Cox (2015). “JEDEC SSD Specifications Explained”
  3. Networks How high will you let latency get? How bad

    does packet loss have to be? Do you have bad neighbours?
  4. Australia is real far away from stuff Melbourne → US-east-1

    16,000km At the speed of light 50ms Minimum possible round-trip, ever 100ms Number of web requests just to open Slack 96
  5. You can solve a lot of distributed problems by waiting

    for consensus ...but you can be waiting a long time
  6. Your phone corrects for the time dilation of the GPS

    satellites. Oh, and all clocks drift quite a decent amount.
  7. Well, alright, more of a spectrum. At most once At

    least once Exactly once Basically never Eleventy copies Effort
  8. Do you want to maybe do it twice? Saving text,

    liking a tweet Or maybe never? Charging money, sending email
  9. Your servers all need to agree... ... over an unreliable

    network ...with unreliable storage ...and different ideas of what time is
  10. It can happen to YOU! It doesn’t have to be

    big and fancy to be distributed.