Firehose Cursor Reset for bsky.network
#2194
bnewbold
announced in
Dev Announcements
Replies: 3 comments 4 replies
-
So I'm assuming that when the switch happens, my client will stay connected and streaming from the old server, until it loses connection at some point or I disconnect it, and at that moment it will reconnect to the new one instead? So I don't have to do anything precisely at 10:00:00? |
Beta Was this translation helpful? Give feedback.
2 replies
-
@ericvolp12 can you tell me if this sounds like a good strategy?
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok, second strategy :D
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Firehose from the Relay at bsky.network will have the cursor reset on Wednesday, February 21st at 10AM PST. The DNS record for
bsky.network
will be updated to point at a new host which will have a new cursor.Behind the scenes, we have multiple Relay servers running in different regions and service providers. We are switching which instance is the primary public relay ahead of enabling federation. The newer instance has a different IP address, operates from our own IP space and hardware, and has a different cursor sequence.
(h/t @ericvolp12 for this write-up)
Who is Affected?
Firehose consumers who depend on PERFECT data consistency from the firehose, or consumers who will fail if the sequence number returned from the firehose is less than a previously seen sequence number.
What should I do?
If you're running a feed generator or other firehose-consuming infrastructure where missing an event or two isn't the end of the world, you don't need to do anything. Reconnecting to the Relay with your existing cursor will tell the new Relay to restart your stream from a live tail of events.
If you rely on PERFECT data consistency from the firehose, you can update your consumer to do the following when it reconnects to the firehose and gets a new, lower
seq
number cursor:seq
by ~10,000 eventsBeta Was this translation helpful? Give feedback.
All reactions