🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

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

Package Overview
Dependencies
Maintainers
4
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Shards: Meteor process manager - server component

latest
Source
npmnpm
Version
0.4.7
Version published
Weekly downloads
44
-87.71%
Maintainers
4
Weekly downloads
 
Created
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

meteor

FAQs

Package last updated on 01 Dec 2022

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