Socket
Socket
Sign inDemoInstall

@modulus/rpc-worker

Package Overview
Dependencies
281
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @modulus/rpc-worker

installs a package and starts rpc-server using exported function


Version published
Maintainers
1
Created

Readme

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

Last updated on 05 Jul 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc