GithubHelp home page GithubHelp logo

jdevsana / serverless-stream-processing-aws-msk-lambda Goto Github PK

View Code? Open in Web Editor NEW

This project forked from taufiqibrahim/serverless-stream-processing-aws-msk-lambda

0.0 0.0 0.0 80 KB

Serverless framework based stream processing using Amazon MSK and Amazon Lambda

Python 100.00%

serverless-stream-processing-aws-msk-lambda's Introduction

Serverless Stream Processing AWS MSK - Lambda

Serverless framework based stream processing using Amazon MSK and Amazon Lambda

image info

Pros & Cons

This framework has several pros and cons as described below:

Pros

  • Easy development and deployment
  • Suitable for quick event-based architecture deployment with low-to-medium traffic
  • Battle proven by AWS Lambda
  • No resource to manage. You can focus totally on logic
  • Pay as you use cost, depends on Lambda invocation cost
  • Logging by AWS Cloudwatch
  • Serverless Framework popularity and many supporting plugins
  • It's just simple Python code!

Cons

  • Hard (if not impossible) to test locally, since AWS MSK deployed on secured VPC
  • Only two consumer group message available, since the beginning of topic (TRIM_HORIZON) and LATEST
  • Not suitable for high traffic topic
  • Sometimes deployment and removal takes quite long time

Project Directory Structures

.
├── apps/                                       # Applications directory
│   └── demo-walkthrough/                       # Single deployable event processing application
│       ├── data/
│       ├── venv/                               # Python virtual environment (ignored by .gitignore)
│       ├── env.dev.json                        # Serverless Variables for stage dev (ignored by .gitignore)
│       ├── env.example.json                    # Example of Serverless Variables
│       ├── handler.py                          # Serverless default handler (created after serverless create)
│       ├── __init__.py
│       ├── p01OrdersEnrichCustomerLocation.py  # Serverless function handler subscribes for a specific Kafka topic
│       ├── package.json                        # Serverless dependencies and plugins declaration
│       ├── package-lock.json
│       ├── requirements.txt                    # Python dependencies
│       ├── serverless.yml                      # Serverless service definition
│       └── walkthrough.md
├── utils/                                      # Utilities Python modules
│   ├── db.py                                   # DB access functions based on SQLAlchemy
│   ├── __init__.py
│   ├── kafka.py                                # Kafka helper functions
│   └── msk.py                                  # MSK specific helper functions
└── visualization (TODO)

TODO

serverless-stream-processing-aws-msk-lambda's People

Contributors

taufiqibrahim avatar

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.