Nascent Prototype Metaverse
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    axon-prioritypublic

    Axon-Priority

    This is a plugin for the Axon socket module. It create a mode where req/rep sockets will send the next request to the least busy node instead of always using round robin.

    Usage

    var axon = require('axon');
    var axonPriority = require('axon-priority');
     
    var req = axon.socket('req');
    axonPriority.patchSocket(req);
     
    // continue to use the socket as you normally would...

    Tests

    make test

    They take about 30s to a minute to run, so be patient.

    Author

    Keywords

    none

    install

    npm i axon-priority

    Downloadslast 7 days

    1

    version

    0.0.2

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar