Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

@trigo/atrix-pubsub

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trigo/atrix-pubsub

Pubsub intigration into atrix microservice framework

Source
npmnpm
Version
0.0.0
Version published
Weekly downloads
9
-25%
Maintainers
1
Weekly downloads
 
Created
Source

NSP Status

atrix-pubsub

Redis/bull based job queue and handler intigraition into atrix microservice framework

Features

  • Connection setup
  • filename based handler registrations

Installation

# install atrix
npm install -S @trigo/atrix

# install pubsub plugin
npm install -S @trigo/atrix-pubsub

Configuration

index.js

'use strict';

const atrix = require('@trigo/atrix');
const path = require('path');

atrix.addService(new atrix.Service('pubsub', {
	// datasource configuration
	dataSource: {
		m1: {
		  // set tyoe to 'pubsub' to use plugin fot the connection
			type: 'pubsub',
			config: {
			  // redis configuration
				redis: {
					host: 'localhost',
					port: 6379,
				},
				// name of the queue to use to queue the jobs
				queueName: 'atrix-pubsub-test',
				
				// directory containing the handler files
				handlerDir: path.join(__dirname, './handlers'),
			},
		},
	},
}));

FAQs

Package last updated on 06 Mar 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