How to use fastboot-pool - 1 common examples

To help you get started, we’ve selected a few fastboot-pool examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kellyselden / fastboot-pool / test / fixtures / index.js View on Github external
'use strict';

const express = require('express');
const router = express.Router();

// eslint-disable-next-line node/no-missing-require
const init = require('fastboot-pool').default;

let initPromise = init({
  fastbootFilename: `${__dirname}/fastboot`,
  requestCountUntilFork: 5
}).catch(() => {});

router.get('/', (req, res) => {
  return initPromise.then(proxy => {
    return proxy(req, res, {
      works: true
    });
  });
});

module.exports = router;

fastboot-pool

Manage Ember FastBoot memory usage using process pools

MIT
Latest version published 1 year ago

Package Health Score

36 / 100
Full package analysis

Popular fastboot-pool functions