Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@modulus/rpc-worker

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@modulus/rpc-worker

installs a package and starts rpc-server using exported function

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

RPC Worker

installs a package and starts rpc-server using exported function

Usage

> rpc-worker --help
Usage: rpc-worker [options] <pkg>

    -v, --version         output current version
    -h, --host            RabbitMQ host (default: "amqp://localhost")
    -q, --queue           RabbitMQ queue name (default: "rpc-queue")
    -c, --capacity        Number of jobs to process in parallel
    -t, --tls             Directory with TLS keys: /keys/ca.pem, /keys/cert.pem, /keys/key.pem
    --opts                Set net|tls options (eg: --opts.passphrase secret)
Examples

Start a worker connecting to a local RabbitMQ instance and using request to answer three RPC calls in parallel:

rpc-worker -c 3 request

Process one request at a time from a secure RabbitMQ to get the gravatar profile of a given email:

rpc-worker -h amqps://admin:pencil@rabbit.example.com \
  --tls /path/to/ssl/keys \
  --opts.passphrase mySecret1 \
  gravatar-profile
Using the docker iamge
docker pull onmodulus/rpc-worker
docker run -it onmodulus/rpc-worker # prints help

docker run -d -v ~/.npmrc:/mnt/app/.npmrc \
  onmodulus/rpc-worker @modulus/private-module

Keywords

FAQs

Package last updated on 05 Jul 2016

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc