No Padding Margin

    middy-middleware-warmup

    1.0.3 • Public • Published

    middy-middleware-warmup

    BuildStatus

    A middy plugin to help keep your Lambdas warm during Winter.

    This plugin was created to be used with serverless-plugin-warmup. However, the plugin can also be configured.

    Setup

    Install via npm:

    npm i --save middy-middleware-warmup

    Usage

    Use with middy;

    const middy = require('middy');
    const warmup = require('middy-middleware-warmup');
     
    const handler = middy((event, context, callback) => {
    });
     
    handler.use(warmup({
      eventSource: 'custom-event-source',
      responseObject: { warm: true }
    });

    Defaults

    const defaultOpts = {
      eventSource: 'serverless-plugin-warmup',
      responseObject: 'Ok.',
      enabled: true
    };
    

    Keywords

    none

    Install

    npm i middy-middleware-warmup

    DownloadsWeekly Downloads

    163

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    5.48 kB

    Total Files

    6

    Last publish

    Collaborators

    • alexdrans