alt.hn

4/10/2026 at 3:51:41 PM

Bluesky April 2026 Outage Post-Mortem

https://pckt.blog/b/jcalabro/april-2026-outage-post-mortem-219ebg2

by jcalabro

4/10/2026 at 4:08:36 PM

> What I had missed is that we deployed a new internal service last week that sent less than three GetPostRecord requests per second, but it did sometimes send batches of 15-20 thousand URIs at a time. Typically, we'd probably be doing between 1-50 post lookups per request.

That’ll do it.

by threecheese

4/10/2026 at 4:45:06 PM

Ahh, the three relevant numbers in development: 0, 1, and infinity.

by 98codes

4/10/2026 at 6:58:20 PM

The incredible part about this is because their backend is all TCP/IP they were literally exhausting the ports by leaving all 65k of them in TIME_WAIT, and the workaround was to start randomizing the localhost address to give them another trillion ports or so.

by jandrese

4/10/2026 at 10:33:06 PM

This is a pretty interesting solution. I could see how this could useful for certain kinds of problems (as part of a ddos attack mitigation for example).

by kyledrake

4/10/2026 at 10:16:24 PM

I mean, it's one GetPostRecord, Michael. What could it cost? 1 trillion ports?

by Night_Thastus

4/10/2026 at 4:31:32 PM

Zero, one, many, many thousands.

by bombcar

4/10/2026 at 7:03:48 PM

And then they fix the issue by using multiple localhost IPs rather than, perhaps, not sending 15-20 thousand URIs at a time

by LoganDark

4/10/2026 at 7:17:26 PM

They mentioned it was a temporary fix that they removed after finding and fixing the true root cause, though.

by odo1242

4/10/2026 at 6:28:04 PM

less than ideal if I had to be frank.

by htx80nerd

4/10/2026 at 8:36:21 PM

At least they aren't hiding and transparent about it unlike the big tech corps with so called SLAs

by opem

4/10/2026 at 10:08:10 PM

There are no outages in Azure sing se.

by tmpz22

4/11/2026 at 2:29:36 AM

GitHub's Ops team would approve this message, I assume.

by _heimdall

4/10/2026 at 6:38:57 PM

I don't really understand this architecture, but I thought Bluesky was distributed like Mastodon? How can it have an outage?

by tapoxi

4/10/2026 at 6:42:47 PM

This writeup is useful for backend engineers: https://atproto.com/articles/atproto-for-distsys-engineers

The simple answer is that atproto works like the web & search engines, where the apps aggregate from the distributed accounts. So the proper analogy here would be like yahoo going down in 1999.

by pfraze

4/10/2026 at 6:56:24 PM

This is a fantastic write-up, thanks for sharing!

by tapoxi

4/10/2026 at 9:17:01 PM

Sorry, but this analogy is very misleading, no one browses websites through Google's servers.

For example, right now in my URL bar I read "news.ycombinator.com", not "google.com/profile/news.ycombinator.com".

If Google goes down now I can keep browsing this website and all the other websites I have in all my other tabs as if nothing had happened.

by fiatjaf

4/10/2026 at 9:57:18 PM

Does Google Reader help you make sense of it? It’s more like each app is like its own Google Reader. And indeed you were able to access the same posts via other apps at that time of outage.

by danabramov

4/11/2026 at 2:31:25 AM

> no one browses websites through Google's servers.

Didn't Google's AMP project do exactly that?

by _heimdall

4/10/2026 at 10:06:22 PM

Technically you can still view the posts directly from the PDS. It’s just uninteresting compared to web pages

by pfraze

4/10/2026 at 10:06:18 PM

Do you have ideas about how Bluesky could decentralize?

by evbogue

4/10/2026 at 10:12:53 PM

Not the original poster but I do have some ideas. Official Bluesky clients could randomly/round-robin access 3-4 different appview servers run by different organizations instead of one centralized server. Likewise there could be 3-4 relays instead of one. Upgrades could roll across the servers so they don't all get hit by bugs immediately.

by wmf

4/10/2026 at 10:18:37 PM

If multiple personal data servers (pdses) share the same set of posts how would we guarantee that they are tamper resistant to third parties?

by evbogue

4/10/2026 at 10:28:16 PM

PDSes should be sharded not replicated. Your posts live on your PDS which lives in one place (although it can move).

by wmf

4/10/2026 at 10:31:15 PM

What's stopping us from doing both?

by evbogue

4/10/2026 at 10:42:45 PM

Cost and complexity tradeoffs. IMO the relay/appview is the current bottleneck.

by wmf

4/10/2026 at 10:51:17 PM

This is why I'm hoping fiatjaf has a recommendation here. I have a feeling he might have a proposal that solves this. But doesn't solve all of it, just some of it.

by evbogue

4/10/2026 at 6:48:01 PM

Google and MSN Search were already available at this time. Also websites used to publish webrings and there was IRC and forums to ask people about things.

by isodev

4/10/2026 at 6:44:02 PM

It’s more of a concept of a plan for being distributed. I even went through the trouble of hosting my own PDC and still, I was unable to use the service during the outage

by isodev

4/10/2026 at 6:42:24 PM

Mastodon infra can have outages, too.

by Retr0id

4/10/2026 at 6:49:33 PM

It's just confined to one instance if it goes down, not all of Mastodon.

by tapoxi

4/10/2026 at 8:09:41 PM

It's not really distributed. It's a centralised service that pulls some parts of 0.01% of user profiles from their own servers.

by direwolf20

4/11/2026 at 5:11:58 AM

"decentralized"

by chr15m

4/10/2026 at 7:04:40 PM

A web interface and home server can have an outage. Bluesky is just a web interface and home server.

by LoganDark

4/10/2026 at 6:48:06 PM

Tell us more about this buggy "new internal service" that's scraping batch data :P

by mwkaufma

4/10/2026 at 5:33:56 PM

> The timing of these log spikes lined up with drops in user-facing traffic, which makes sense. Our data plane heavily uses memcached to keep load off our main Scylla database, and if we're exhausting ports, that's a huge problem.

I expect this is common.

by goekjclo

4/10/2026 at 11:27:07 PM

Good to know the discussion about decentralization and federation had finally ended

by heliumtera

4/10/2026 at 6:00:38 PM

nostr never goes down

by jonstaab

4/10/2026 at 6:50:55 PM

If nostr went down would people even notice?

by jandrese

4/10/2026 at 7:27:36 PM

If any major nostr relay goes down, no one notices. That has happened many times, the network is very resilient to that.

by nout

4/10/2026 at 6:53:32 PM

probably not

by jonstaab

4/10/2026 at 6:02:53 PM

All support to other decentralizers but nothing never goes down.

by pfraze

4/10/2026 at 7:25:52 PM

The comparison here is to something like TCP/IP. TCP/IP never goes down. TCP/IP is a protocol, the servers may go down and cause disruption, but the protocol doesn't really have the ability to "go down". Nostr is also a protocol. The communication on top of Nostr is pretty resilient compared to other solutions though, so that's the main highlight here.

If tens of servers go down, then some people may start noticing a bit of inconvenience. If hundreds of servers go down, then some people may need to coordinate out of bound on what relays to use, but it still generally speaking works ok.

by nout

4/10/2026 at 6:26:47 PM

1000x redundancy makes it vanishingly unlikely. Although I know we're due for a pole shift so all bets are off I suppose.

by jonstaab

4/10/2026 at 7:56:29 PM

Wasn't aware there are ~2k relays now. Have inter-relay sharing situation improved?

When I tried it long time ago, the idea was just a transposed Mastodon model that the client would just multi-post to dozen different servers(relays) automatically to be hopeful that the post would be available in at least one shared relays between the user and their followers. That didn't seem to scale well.

by numpad0

4/10/2026 at 8:31:03 PM

Getting clients to do the right thing is like herding cats, but there has been some progress. Early 2023 Mike Dilger came up with the "gossip model" (renamed "outbox model" for obvious reasons). Here's my write-up: https://habla.news/hodlbod/8YjqXm4SKY-TauwjOfLXS

The basic idea is that for microblogging use cases users advertise which relays their content is stored on, which clients follow (this implies that there are less-decentralized indexes that hold these pointers, but it does help distribute content to aligned relays instead of blast content everywhere).

Also, relays aside, one key difference vs ActivityPub is that no third party owns your identity, which means you can move from one relay to another freely, which is not true on Mastodon.

by jonstaab

4/11/2026 at 5:15:54 AM

A difference with Mastodon is your account is independent of any relay.

> scale well

It is up and it is growing.

by chr15m

4/10/2026 at 11:55:50 PM

Bitcoin, BitTorrent never go down.

by bit1993

4/10/2026 at 10:07:12 PM

There's stark contrast for an average human visiting the landing page of bsky.app vs nostr.org

by emidoots

4/10/2026 at 7:12:45 PM

Distributed social media goes down? hrmmm.

Email and the internet don't have "downtime." Certain key infra providers do of course. ISPs can go down. DNS providers can go down. But the internet and email itself can't go down absent a global electricity outage.

You haven't built a decentralized network until you reach that standard imo. Otherwise its just "distributed protocol" cosplay. Nice costume. Kind of like how everybody has been amnesia'd into thinking Obsidian is open source when it really isn't.

by pembrook

4/10/2026 at 7:14:39 PM

Bluesky is a provider. Blacksky didn’t go down.

by iAMkenough

4/10/2026 at 7:24:15 PM

Is there anything running on Blacksky other than Bluesky with more than say, 100 active users?

AOL never even got to that level of dominance in the internet 1.0 era.

The point is it's not a distributed network if one node is 99.9% of all traffic.

by pembrook

4/10/2026 at 10:53:02 PM

With my SRE hat on, dare I ask... could/should this have been picked up in testing?

And then normally there's a nice discussion about how production is very different to the test environment.

by mwagstaff

4/10/2026 at 6:43:28 PM

Did all 3 users notice?

by gsibble

4/10/2026 at 7:11:10 PM

[dead]

by dogemaster2027

4/10/2026 at 7:07:53 PM

Naw, only one did. Turns out the other two were his socket accounts he used to upvote and comment on his own content.

Okay, nuff trolling for today

by ffsm8

4/10/2026 at 6:57:28 PM

[dead]

by dogemaster2027

4/10/2026 at 5:08:23 PM

[flagged]

by templar_snow

4/10/2026 at 5:14:05 PM

Why?

by lavela

4/10/2026 at 5:45:27 PM

Thank you for the post mortem on this outage.

by rvz

4/10/2026 at 6:21:43 PM

Great write up... curious about the RCA. Thanks!

by electrondood

4/10/2026 at 8:50:38 PM

> They represent real user-facing downtime

Off-topic, but "real" feels like the new "delve". Is there such a thing as "fake" or "virtual" downtime, or why do people feel the need to specify that all manner of things are "real" nowadays?

by streetfighter64

4/10/2026 at 5:38:53 PM

Lite Blue on a dark Blue background. That is a new one, I have seen grey text on lite grey, but blue on blue ?

The article does work in lynx, at least I can read it.

by jmclnx

4/10/2026 at 7:02:47 PM

Golang's use of a potentially unbounded number of threads is just insane. I used to be fairly bullish on golang, but this, combined with the fact that its garbage collected, makes me feel its just unsuitable for production use.

by drewg123

4/10/2026 at 7:38:23 PM

You can have this problem with any kind of thread -- including OS threads -- if you do an unbounded spawn loop. Go is hardly unique in this.

Goroutines are actually better AFAIK because they distribute work on a thread pool that can be much smaller than the number of active goroutines.

If my quick skim created a correct understanding, then the problem here looks more like architecture. Put simply: does the memcached client really require a new TCP connection for every lookup? I would think you would pool those connections just like you would a typical database and keep them around for approximately forever. Then they wouldn't have spammed memcache with so many connections in the first place...

(edit: ah, it looks like they do use a pool, but perhaps the pool does not have a bounded upper size, which is its own kind of fail.)

by floating-io

4/10/2026 at 8:17:59 PM

Rust's async doesn't have this issue. Or at least, it's the same issue as malloc in an unbounded loop, but that's a more general issue not related to async or threading.

15-20 thousand futures would be trivial. 15-20 thousand goroutines, definitely not.

by slopinthebag

4/10/2026 at 9:30:10 PM

I don't know enough about rust to confirm or deny that -- but unless rust somehow puts a limit on in-flight async operations, I don't see how it would help.

The problem is not resource usage in go. The problem is that they created umpteen thousand TCP connections, which is going to kill things regardless of the language.

by floating-io

4/10/2026 at 7:33:56 PM

Why does garbage collection make it unsuitable for production use? A lot of production software is written in garbage collected languages like Java. Pretty much the entire backend for iTunes/Apple Music is written in Java, and it's not doing any kind of fancy bump allocator tricks to avoid garbage. In my mind, kind of hard to argue that Apple Music is not "production use".

There are certainly plenty of projects where garbage collection is too slow, but I don't know that they're the majority, and more people would likely prefer memory safety by default.

by tombert

4/10/2026 at 10:11:14 PM

Based on my experience of Apple Music being pretty bad at streaming music, i would say that it's not ready for 'production use'.

by madeofpalk

4/10/2026 at 8:20:52 PM

Everything is understood by comparison. Unsuitable for production use, compared to what is the more apt question.

by slopinthebag