0.7.0 • Published 10 months ago
@alepha/queue v0.7.0
@alepha/queue
Alepha Queue is a simple queue system for Alepha.
It provides a simple interface for creating and managing queues.
It uses Redis by default, but you can use any other queue provider by implementing the QueueProvider interface.
Installation
npm install @alepha/queueUsage
import { run } from '@alepha/core';
import { $queue, $consumer } from '@alepha/queue';
class App {
q = $queue({
schema: {
payload: t.object({ id: t.uuid() }),
}
});
worker = $consumer({
queue: this.q,
handler: async ({ payload }) => {
console.log(payload.id);
}
});
}
run(App)0.7.0
10 months ago
0.6.10
10 months ago
0.6.9
10 months ago
0.6.8
10 months ago
0.6.7
10 months ago
0.6.6
10 months ago
0.6.5
10 months ago
0.6.4
10 months ago
0.6.3
10 months ago
0.6.2
11 months ago
0.6.1
11 months ago
0.6.0
11 months ago
0.5.2
11 months ago
0.5.1
11 months ago
0.5.0
11 months ago
0.4.0
1 year ago
0.3.0
1 year ago