-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Determine how to trigger processing/analysis when new versions are added to DB #62
Comments
I think I like (2) best. It matches up to some early discussions on how we envisioned this might work, and it lets of deploy on one machine or many, as needed. I have some experience with ZeroMQ, so I'd be comfortable starting there, all else being equal. |
Agree (2) is the right way to be doing this. If we need to hook up something quickly, maybe worth starting with (1), but if we have the time, best to do it right with a queue from the start. 👍 on ZeroMQ. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in seven days if no further activity occurs. If it should not be closed, please comment! Thank you for your contributions. |
Heyyyyyyyy we did this! |
Adding this to the main repo because it has potential implications for both
-processing
and-db
.Now that @janakrajchadha is starting to make some headway on analysis, we need to get serious about determining how and when to run that analysis against data that has been added to the DB.
Things that have been discussed:
Have processing tools poll DB on a regular interval looking for new data. (Highest overhead, but least effort; no major new systems or features have to be built for this.)
Create a message queue. DB should add items to the queue when page versions are imported. Processing tools will read from that queue. If we move processing to AWS, we can probably rely on Amazon SQS for this (if staying on GCloud, Cloud Pub/Sub). Otherwise, we’ll need to set up our own queueing service. ZeroMQ and Beanstalkd both seem like good options here because they are language-agnostic.
Webhooks. Processing tools could register themselves with DB as callable webhooks.
Other ideas?
The text was updated successfully, but these errors were encountered: