Socket
Socket
Sign inDemoInstall

@moxb/shards-meteor-process-manager-server

Package Overview
Dependencies
8
Maintainers
4
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @moxb/shards-meteor-process-manager-server

Shards: Meteor process manager - server component


Version published
Weekly downloads
6
increased by500%
Maintainers
4
Created
Weekly downloads
 

Readme

Source

Shards - Meteor Process Manager: server features

This family of packages provides a framework for Meteor projects that allows running tasks in the background.

Overview

See @moxb/shards-meteor-process-manager-core for a description of some basic terms.

Roles

Your app can run in one of two different roles:

  • Controller: There can be only one. Controls the execution of the tasks. Sends requests to the workers.
  • Worker: There can be more than one. Takes requests from the controller and executes processes.

The idea is that the same Meteor application can be executed on multiple nodes simultaneously, in different roles.

Running a worker node

// Define our processes
const processBreedSheep = { ... };
const processCountSheep = { ... };
const processButcherSheep = { ... };

// Launch a worker node
initProcessManagerWorker({
    getScopeData: () => {},
    getProcessList: () => [ // enumerate our processes
        processBreedSheep,
        processCountSheep,
        processButcherSheep,
    ],
});

See ProcessManagerWorkerProps for more details.

Running a controller node

initProcessManagerController();

See ProcessManagerControllerProps for more details.

Communication between the nodes

All nodes should have access to the same MongoDB instance. For best (fastest) result, the OpLog support should be enabled, and it should be part of the MongoURL provided to the meteor nodes.

Meteor users, ScopeId, Scope, ScopeData, authorization

TODO

See also

Keywords

FAQs

Last updated on 01 Dec 2022

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