Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Bluesky firehose instead of polling #978

Closed
6 of 7 tasks
Tracked by #381
snarfed opened this issue Apr 29, 2024 · 4 comments
Closed
6 of 7 tasks
Tracked by #381

Use Bluesky firehose instead of polling #978

snarfed opened this issue Apr 29, 2024 · 4 comments
Labels

Comments

@snarfed
Copy link
Owner

snarfed commented Apr 29, 2024

We should revisit using the Bluesky firehose instead of polling notifications. Much heavier, but would get rid of the up to 5m delay, which is bad UX. Thanks @ShreyanJain9 for the nudge!

(This would obsolete #943, #954.)

  • basic firehose consumer
  • detect commits from our bridged Bluesky users
  • detect commits that reference our bridged non-Bluesky users
  • store Objects, enqueue receive tasks
  • store cursor
  • reconnect when disconnected
  • monitoring
@snarfed snarfed added the now label May 4, 2024
snarfed added a commit that referenced this issue May 4, 2024
try to make sure we don't miss any follows until we switch to firehose in #978

for #997
snarfed added a commit that referenced this issue May 7, 2024
snarfed added a commit that referenced this issue May 8, 2024
@snarfed
Copy link
Owner Author

snarfed commented May 8, 2024

Making progress on this! Hoping to ship it this week.

snarfed added a commit that referenced this issue May 9, 2024
snarfed added a commit that referenced this issue May 9, 2024
snarfed added a commit that referenced this issue May 9, 2024
snarfed added a commit that referenced this issue May 9, 2024
snarfed added a commit that referenced this issue May 9, 2024
snarfed added a commit that referenced this issue May 9, 2024
snarfed added a commit that referenced this issue May 9, 2024
snarfed added a commit that referenced this issue May 9, 2024
@snarfed
Copy link
Owner Author

snarfed commented May 9, 2024

Big progress here, starting to roll this out today.

@snarfed
Copy link
Owner Author

snarfed commented May 9, 2024

Shipped this to production! With training wheels. We're still polling too, but I'm hopeful that we can turn that down pretty soon.

snarfed added a commit that referenced this issue May 10, 2024
snarfed added a commit that referenced this issue May 10, 2024
snarfed added a commit that referenced this issue May 11, 2024
hopefully cuts down on datastore load a bit

for #978
snarfed added a commit that referenced this issue May 11, 2024
also refactor and simplify load_dids, error reporting. #978
@snarfed
Copy link
Owner Author

snarfed commented May 14, 2024

...and new posts for https://bsky.app/profile/rolle.mementomori.social.ap.brid.gy are showing up now too! At least some. So that was either just waiting on getRepo, or hashtag posts weren't working, or both.

Excited that this has (hopefully) landed. Tentatively closing!

@snarfed snarfed closed this as completed May 14, 2024
snarfed added a commit that referenced this issue May 14, 2024
optimize loading DIDs, move around threads and exception handling, etc.

for #978
snarfed added a commit that referenced this issue May 14, 2024
snarfed added a commit that referenced this issue May 22, 2024
for #978. end of a (brief) era!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant