0.7.0 • Published 9 months ago

@alepha/queue v0.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 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

9 months ago

0.6.10

9 months ago

0.6.9

9 months ago

0.6.8

9 months ago

0.6.7

9 months ago

0.6.6

9 months ago

0.6.5

9 months ago

0.6.4

10 months ago

0.6.3

10 months ago

0.6.2

10 months ago

0.6.1

10 months ago

0.6.0

10 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