Skip to content

Implemented queue with bullmq #2

Merged
rachhen merged 10 commits intomainfrom
bullmq
May 4, 2025
Merged

Implemented queue with bullmq #2
rachhen merged 10 commits intomainfrom
bullmq

Conversation

@rachhen
Copy link
Copy Markdown
Owner

@rachhen rachhen commented May 4, 2025

No description provided.

rachhen added 10 commits May 4, 2025 14:24
This commit refactors the application to transition from Cloudflare Workers to a Node.js environment, utilizing BullMQ for queue management. Key changes include:
- Removed Cloudflare-specific workflows and bindings.
- Added BullMQ queues for transaction and webhook processing.
- Updated environment configuration and Redis integration.
- Modified transaction handling to use BullMQ jobs instead of Cloudflare workflows.
- Enhanced error handling and logging with Pino.
- Updated dependencies to support the new architecture.

The refactor aims to improve maintainability, scalability, and deployment flexibility by leveraging Node.js and BullMQ for background job processing.
The changes improve code readability by fixing indentation and adding explicit type casting for the `global.fetch` mock. This ensures consistency and clarity in the test file.
This commit introduces Docker and docker-compose configuration files to streamline the deployment process. The .dockerignore file is added to exclude unnecessary files, and the Dockerfile is created to build the application using Bun. The docker-compose.yml file sets up the application and Redis services for local development. Additionally, the package.json is updated to include a "start" script for running the application in production.
Standardize indentation across multiple files to improve code readability and maintain consistency. Simplify Redis configuration by using a single `REDIS_URL` environment variable instead of separate `REDIS_HOST`, `REDIS_PORT`, and `REDIS_PASSWORD` variables. This change reduces complexity and aligns with modern Redis connection practices.
Add husky as a dependency and configure a pre-commit hook to run biome checks and tests. This ensures code quality and test pass before commits.
This commit introduces a new GitHub Actions workflow to automate continuous integration and quality checks. The workflow includes two jobs: one for running tests using Bun and another for running code quality checks using Biome. This ensures that code is tested and adheres to quality standards before merging.
This commit introduces the fly.toml configuration file to set up the deployment environment for the khqr-webhook application on Fly.io. The configuration includes settings for the app name, primary region, build, environment variables, HTTP service, and VM specifications.
The test command was removed from the pre-commit hook to streamline the pre-commit process. This change ensures that only the biome check is executed during pre-commit, reducing the time required for the pre-commit step.
The test command in the CI workflow was updated from `bun test` to `bun run test` to align with the project's script configuration. This ensures consistency and avoids potential issues with script execution.
@rachhen rachhen merged commit 3c4069c into main May 4, 2025
4 checks passed
@rachhen rachhen deleted the bullmq branch May 4, 2025 17:40
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