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

[Feature] Re-architect to a queue publisher and queue consumers -- Staging #883

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

levinmr
Copy link
Contributor

@levinmr levinmr commented Aug 15, 2024

No description provided.

levinmr and others added 2 commits August 15, 2024 15:10
- Add PgBoss library to manage job queue
- use the runQueuePublish method in bin/analytics
- Add queueConsume method, and deploy script.
- Add deployment manifests for publisher and consumer
- Add agencies.json to contain agency config instead of shell scripts
- Set memory limits for publisher and consumer using node heap size flags
- Add a deplay between initial script runs in cron.js
- Use a singleton key for queue messages so that duplicate messages are not created
- Reduce memory footprint on consumer by reusing processor, context, s3 client, logger
- Add a gin index to the jsonb data column and use and optimized query for existing rows check
- Add logic to escape single quotes and question marks in data strings
[Feature] Re-architect to publisher and consumers
@levinmr levinmr merged commit e0d2bf7 into staging Aug 15, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant