Message Queue
Production-ready message queue system with support for multiple adapters. Process background jobs with Bull, RabbitMQ, AWS SQS, Kafka, or in-memory queues.
On this page
Message Queues That Just Work
Process background jobs with any adapter.
Bull, RabbitMQ, AWS SQS, Kafka, or in-memory. Same API.
It's This Simple
Set up a queue and process jobs
typescript
Why Message Queues Matter
Without proper queue systems, you're manually managing job processing, handling failures, and dealing with different queue APIs. With MoroJS, you get all of that automatically.
Traditional queue setup requires different libraries and APIs for each adapter. We give you one consistent API.
Without Queue System
- •Different APIs for each queue system
- •Manual retry logic
- •No dead letter queue handling
- •Complex adapter switching
With MoroJS
- •Same API across all adapters
- •Automatic retry with backoff
- •Built-in dead letter queue
- •Easy adapter switching
It's This Easy
Use the same API regardless of which adapter you choose.
Same API, different adapters
typescript
Why It Makes Sense
Flexible
Choose Bull, RabbitMQ, SQS, Kafka, or Memory. Same API.
Production-Ready
Retries, dead letter queues, priority queues, and metrics included.
Consistent
Same API across all adapters. Switch between them easily.
How It Works
MoroJS provides a unified queue API that works with multiple adapters. You configure a queue with your chosen adapter, add jobs to it, and process them with handlers. The system handles retries, dead letter queues, priority, and monitoring automatically.
Quick Start
Basic Queue Setup
typescript
Queue Adapters
Memory Adapter (Development)
typescript
Bull Adapter (Redis)
typescript
RabbitMQ Adapter
typescript
AWS SQS Adapter
typescript
Job Management
Adding Jobs
typescript
Job Processing with Progress
typescript
Monitoring & Metrics
Queue Statistics
typescript
Event Monitoring
typescript
Best Practices
1. Choose the Right Adapter
- •Development: Use
memoryadapter - •Production (Simple): Use
bullwith Redis - •Production (High Scale): Use
kafkaorrabbitmq - •AWS Infrastructure: Use
sqs