0.7.0 • Published 5 months ago

@alepha/queue v0.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@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/queue

Usage

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

5 months ago

0.6.10

6 months ago

0.6.9

6 months ago

0.6.8

6 months ago

0.6.7

6 months ago

0.6.6

6 months ago

0.6.5

6 months ago

0.6.4

6 months ago

0.6.3

6 months ago

0.6.2

6 months ago

0.6.1

6 months ago

0.6.0

7 months ago

0.5.2

7 months ago

0.5.1

7 months ago

0.5.0

7 months ago

0.4.0

10 months ago

0.3.0

10 months ago