Skip to content
By using Twitter’s services you agree to our Cookies Use. We and our partners operate globally and use cookies, including for analytics, personalisation, and ads.

This is the legacy version of twitter.com. We will be shutting it down on June 1, 2020. Please switch to a supported browser, or disable the extension which masks your browser. You can see a list of supported browsers in our Help Center.

  • Home Home Home, current page.
  • About

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @
  • Language: English
    • Bahasa Indonesia
    • Bahasa Melayu
    • Català
    • Čeština
    • Dansk
    • Deutsch
    • English UK
    • Español
    • Filipino
    • Français
    • Hrvatski
    • Italiano
    • Magyar
    • Nederlands
    • Norsk
    • Polski
    • Português
    • Română
    • Slovenčina
    • Suomi
    • Svenska
    • Tiếng Việt
    • Türkçe
    • Ελληνικά
    • Български език
    • Русский
    • Српски
    • Українська мова
    • עִבְרִית
    • العربية
    • فارسی
    • मराठी
    • हिन्दी
    • বাংলা
    • ગુજરાતી
    • தமிழ்
    • ಕನ್ನಡ
    • ภาษาไทย
    • 한국어
    • 日本語
    • 简体中文
    • 繁體中文
  • Have an account? Log in
    Have an account?
    · Forgot password?

    New to Twitter?
    Sign up
patio11's profile
Patrick McKenzie
Patrick McKenzie
Patrick McKenzie
@patio11

Tweets

Patrick McKenzie

@patio11

I work for the Internet, at @stripe, mostly on accelerating startups. Opinions here are my own.

東京都 Tokyo
kalzumeus.com
Joined February 2009

Tweets

  • © 2020 Twitter
  • About
  • Help Center
  • Terms
  • Privacy policy
  • Imprint
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @

Promote this Tweet

Block

  • Tweet with a location

    You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more

    Your lists

    Create a new list


    Under 100 characters, optional

    Privacy

    Copy link to Tweet

    Embed this Tweet

    Embed this Video

    Add this Tweet to your website by copying the code below. Learn more

    Add this video to your website by copying the code below. Learn more

    Hmm, there was a problem reaching the server.

    By embedding Twitter content in your website or app, you are agreeing to the Twitter Developer Agreement and Developer Policy.

    Preview

    Why you're seeing this ad

    Log in to Twitter

    · Forgot password?
    Don't have an account? Sign up »

    Sign up for Twitter

    Not on Twitter? Sign up, tune into the things you care about, and get updates as they happen.

    Sign up
    Have an account? Log in »

    Two-way (sending and receiving) short codes:

    Country Code For customers of
    United States 40404 (any)
    Canada 21212 (any)
    United Kingdom 86444 Vodafone, Orange, 3, O2
    Brazil 40404 Nextel, TIM
    Haiti 40404 Digicel, Voila
    Ireland 51210 Vodafone, O2
    India 53000 Bharti Airtel, Videocon, Reliance
    Indonesia 89887 AXIS, 3, Telkomsel, Indosat, XL Axiata
    Italy 4880804 Wind
    3424486444 Vodafone
    » See SMS short codes for other countries

    Confirmation

     

    Welcome home!

    This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.

    Tweets not working for you?

    Hover over the profile pic and click the Following button to unfollow any account.

    Say a lot with a little

    When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.

    Spread the word

    The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.

    Join the conversation

    Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.

    Learn the latest

    Get instant insight into what people are talking about now.

    Get more of what you love

    Follow more accounts to get instant updates about topics you care about.

    Find what's happening

    See the latest conversations about any topic instantly.

    Never miss a Moment

    Catch up instantly on the best stories happening as they unfold.

    1. Patrick McKenzie‏ @patio11 May 2
      • Report Tweet
      • Report NetzDG Violation

      Patrick McKenzie Retweeted the apocalypse, but fashion  🦝

      How I learned of the importance of idempotency for work queues: a thread.https://twitter.com/ElleArmageddon/status/1255870742727585792 …

      Patrick McKenzie added,

      the apocalypse, but fashion  🦝 @ElleArmageddon
      This is your unscheduled reminder that telling early-in-career engineers stories of times you messed something up real bad is a good way to help them combat their own impostor syndrome.
      Show this thread
      3 replies 56 retweets 329 likes
      Show this thread
    2. Patrick McKenzie‏ @patio11 May 2
      • Report Tweet
      • Report NetzDG Violation

      About 9 years ago, I was the owner and sole developer at a company which delivered scheduled reminders over phone calls. The logic was, essentially, “If someone needs a call today, and they haven’t been called, put a call on the queue to them.” We ran this check every 5 minutes.

      4 replies 1 retweet 37 likes
      Show this thread
    3. Patrick McKenzie‏ @patio11 May 2
      • Report Tweet
      • Report NetzDG Violation

      One day, I made a change to an unrelated part of the queue worker which caused them to block (not process any events, including calls). Importantly, a) they usually took 5s to run and b) we had never had something fail to execute within 5 min before. See where this is going?

      1 reply 1 retweet 14 likes
      Show this thread
      Patrick McKenzie‏ @patio11 May 2
      • Report Tweet
      • Report NetzDG Violation

      I discovered the bug late that day, because I was in the midst of an office/apartment move and my phone ended up in one of the boxes. 12 hours had elapsed and there were thousands of events on the queue. I reverted the commit that was blocking the queue and let it drain.

      2:59 AM - 2 May 2020
      • 12 Likes
      • Daniel Houck Mark Did Well Michael Keenan David Zima Todd Lynam DCoderLT Adam Jones Frank Kotsianas Lachlan Priest
      1 reply 0 retweets 12 likes
        1. New conversation
        2. Patrick McKenzie‏ @patio11 May 2
          • Report Tweet
          • Report NetzDG Violation

          What I thought had happened: OK, X,000 less important analytics events and a few dozen phone calls scheduled for this morning delivered within a half hour of scheduled time. That was not what had happened.

          1 reply 0 retweets 13 likes
          Show this thread
        3. Patrick McKenzie‏ @patio11 May 2
          • Report Tweet
          • Report NetzDG Violation

          What had actually happened was, every five minutes for 12 hours, an entry was added to the queue for each person who needed a phone call. When I restarted the queue, they all fired within 2 minutes.

          1 reply 0 retweets 26 likes
          Show this thread
        4. Patrick McKenzie‏ @patio11 May 2
          • Report Tweet
          • Report NetzDG Violation

          Now let’s talk about the scalability or cloud systems versus the scalability of a plain old telephone. The telecom system is very capable of delivering 80 phone calls in 2 minutes. Phones don’t tolerate that so well.

          2 replies 0 retweets 19 likes
          Show this thread
        5. Patrick McKenzie‏ @patio11 May 2
          • Report Tweet
          • Report NetzDG Violation

          So this manifested for customers’ customers as their phones ringing off the hook. Answer a call. Hang up on it. That’s one. Phone rings immediately. Answer and hang up. That’s two. Most people pulled the cord from the wall before counting to ~70.

          1 reply 0 retweets 26 likes
          Show this thread
        6. Patrick McKenzie‏ @patio11 May 2
          • Report Tweet
          • Report NetzDG Violation

          When I realized what had happened it was after midnight in Japan. I was in a new apartment with no reliable phone or Internet. I walked across town, in freezing rain, holding a laptop and wired phone, so that I could deliver apology calls to customers and customers’ customers.

          1 reply 0 retweets 36 likes
          Show this thread
        7. Patrick McKenzie‏ @patio11 May 2
          • Report Tweet
          • Report NetzDG Violation

          I broke down crying after the first three, and called my dad, certain that I had just bankrupted the business. We actually lost two customers. One came back after receiving an explanation. Anyhow, that’s why you add to queues using an idempotency key.

          5 replies 7 retweets 180 likes
          Show this thread
        8. Patrick McKenzie‏ @patio11 May 2
          • Report Tweet
          • Report NetzDG Violation

          Worth noting, since people often think that only noobs made mistakes: I was 10 years into my career at this point, have a CS degree, had run multiple businesses and written code used in production by Serious People at my day job, etc.

          6 replies 7 retweets 187 likes
          Show this thread
        9. End of conversation

      Loading seems to be taking a while.

      Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

        Promoted Tweet

        false

        • © 2020 Twitter
        • About
        • Help Center
        • Terms
        • Privacy policy
        • Imprint
        • Cookies
        • Ads info