Giter VIP home page Giter VIP logo

serverless-kinesis-stream-management's Introduction

⚡️ Serverless Kinesis Management Plugin

npm license

Example Single Managed Stream

single event stream with archival

About the plugin

HIGHLY EXPERIMENTAL AND WILL CHANGE. We are building this strictly to meet our own needs, but are willing to consider and accommodate others if it betters the overall plugin!

This plugin serves to simplify the creation and management of Kinesis streams in AWS. All the configuration is done via CloudFormation as part of the normal package step of the Serverless Framework so you can easily review all changes before the take place.

A core goal is to limit the redundant task of creating the CloudFormation for a kinesis stream, a Firehose to archive it, etc.

Limits

Each particular stream can support around 5 lambda subscribers before throttling becomes a large issue.

NOTE: If you are using the archive option of this plugin, you are limited to FOUR (4) lambda subscribers as the Kinesis Firehose will take one of your five slots.

Configuration

# serverless.yml

# Example Configs
  custom:
    kinesisStreams:
      defaults: # optional global overrides
        archiveBucket: # default: randomly named by cfn
        archive: false
        encryption: true
        encryptionKey: alias/aws/kms
        retention: 24
        shardCount: 1
        archiveTransformNewlines: false
      streams:
        - name: MyStream (required)
          archiveBucket: # optional (and currently unsupported)
          archive: false # optional
          keyId: alias/aws/kinesis # optional
          retention: 24 # optional
          shardCount: 1 # optional
          archiveTransformNewlines: false # optional

Future

In the future we hope to automate more of the operations, including intelligent auto-scaling of shards and potentially managed replication of streams as the subscriber interest grows against a particular stream.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.