Socket
Book a DemoInstallSign in
Socket

grpcq

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grpcq

gRPC Queue for managed backends.

0.0.4
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

grpcq

Multi backend queue for Node.js and any languages via gRPC.

Features

  • Amazon SQS backend support.
  • Google Cloud Pub/Sub backend support.
  • bull backend support.
  • gRPC client support. (C++, Node.js, Python, Ruby, Objective-C, PHP, C#)
  • Delayed jobs.
  • Schedule and repeat jobs.
  • Retries.
  • View messages on-the-fly.
  • Job completion acknowledgement.
  • Fully-managed hosting providers.
  • UI.
  • Event-driven API Guide.

Usage

Install package from npm install grpcq --save or yarn add grpcq.

const grpcq = require('grpcq')

grpcq.subscribe({
  name: 'find reservation in every 5m',
  type: 'sqs',
})
.on('message', (message) => {
  console.log('[client] got message', message)
})
.on('error', (error) => {
  console.log('[client] got error', error)
})

let receipt = await grpcq.publish({
  name: 'find reservation in every 5m',
  type: 'sqs',
  data: 'any data',
  repeat: '5m'
})

Documentation

Tests

Use mocha, chai assert.

For debug export DEBUG=grpcq*

npm test -- --grep="grpcq client"

npm test -- --grep="local require"

npm test -- --grep="ping pong with memory backend"

npm test -- --grep="kue driver ping pong"

npm test -- --grep="grpcq server"

npm test -- --grep="local createServer without opt"

npm test -- --grep="local createServer with invalid backend"

npm test -- --grep="local createServer with memory backend"

npm test -- --grep="createServer fail to auth"

Keywords

queue

FAQs

Package last updated on 15 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.