Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

clarify timing expectations for firehose #280

Closed
ktdreyer opened this issue Jan 29, 2019 · 3 comments
Closed

clarify timing expectations for firehose #280

ktdreyer opened this issue Jan 29, 2019 · 3 comments

Comments

@ktdreyer
Copy link

Would you please clarify how soon we should see an event here in the firehose compared to publishing it upstream?

For example, if I push a new tag to GitHub, how long would I have to wait until I see it in the libraries.io firehose? Is libraries.io listening an event stream that GitHub publishes somewhere? Or is libraries.io polling GitHub on some interval?

@ktdreyer
Copy link
Author

I found the Watcher class at https://github.com/librariesio/dispatch/blob/master/dispatch.rb . There's EventMachine.add_periodic_timer(30), so I guess this is polling all those upstream feeds every 30 seconds.

@katzj
Copy link
Member

katzj commented Feb 8, 2019

The upstream feeds get polled with that frequency... github gets instead watched off of the github sse stream

@katzj katzj closed this as completed Feb 8, 2019
@ktdreyer
Copy link
Author

ktdreyer commented Feb 8, 2019

Thanks, I've added this to the README here: #281

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants