Migration Paths
Bull to BullMQ
Migrate from the legacy Bull package to BullMQ
Newer BullMQ Versions
Upgrade between BullMQ versions safely
Understanding Migration Types
Different types of upgrades require different strategies:- Bugfix Releases
- New Features
- Breaking Changes
Version Pattern:
3.14.4 → 3.14.7 (micro version change)- Risk Level: Low
- Strategy: Simple update, no code changes needed
- Downtime: None required
While it’s not critical that all instances run the same version, we recommend it for consistency.
General Migration Advice
Recommended Upgrade Path
Example Migration Timeline
If you’re on version1.3.7 and want to reach 4.2.6:
Migration Strategies
For challenging upgrades, consider these strategies:Pause/Upgrade/Unpause
Pause/Upgrade/Unpause
Blue-Green Deployment
Blue-Green Deployment
Run old and new versions side-by-side:
- Deploy new version alongside old version
- Gradually shift traffic to new version
- Monitor for issues
- Once stable, retire old version
- You have sufficient infrastructure
- Changes are additive (not destructive)
- You can route jobs between versions
Use New Queues
Use New Queues
The safest but most drastic solution:
Run both versions in parallel
- Old version processes old queues
- New version processes new queues
- Direct new jobs to new queues
Testing Migrations
Monitoring During Migration
Key metrics to watch:Job Completion Rate
Ensure jobs continue to complete at normal rates
Error Rate
Watch for spikes in errors during migration
Queue Length
Monitor waiting and active job counts
Stalled Jobs
Check for unusual numbers of stalled jobs
Need Help?
If you encounter issues during migration:- Check the Troubleshooting guide
- Review the Changelog
- Ask in GitHub Discussions
- Report bugs in GitHub Issues
Related Resources
Bull to BullMQ
Detailed guide for migrating from Bull
Newer Versions
Strategies for upgrading BullMQ versions
Going to Production
Production deployment best practices
Troubleshooting
Common issues and solutions
