Giter Site home page Giter Site logo

arijitsaha / kinesis_local Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 59.71 MB

Simulates a pipeline of realtime processing with event streaming data

Shell 0.01% Python 98.42% CSS 0.25% TeX 0.01% JavaScript 0.06% C++ 0.41% C 0.79% Fortran 0.03% Smarty 0.01% Jupyter Notebook 0.01%

kinesis_local's Introduction

README

Project to simulate a pipeline of realtime processing with event streaming data using AWS Kinesis Streams.

Following packages are used for running kinesis streams in local development environment

Project structure

Following are the major scripts

  • reset_order_streams.sh: Deletes & Recreates the necessary Kinesis streams
  • order_generator.py: Generates fakes orders and inserts the event order_created
  • order_assignment.py: Assigns orders to drivers and inserts the event order_assigned
  • order_completed.py: Marks orders as completed and inserts order_id in order_completed
  • view_stream.py: To view the various order event stream
  • metrics_top_regions.ipynb: Notebook to calcuate Top N regions based on number of orders created

Installations and Setup

  • pip install localstack
  • pip install awscli-local
  • pip install faker
  • pip install boto3
  • localstack start --docker
  • source kinesis_local/bin/activate

Examples on how to run the scripts

  • bash reset_order_streams.sh
  • python order_generator.py 'order_created' 2
  • python order_assignment.py 'order_created' 'order_assigned' 2
  • python order_completed.py 'order_assigned' 'order_completed' 2
  • python view_stream.py 'order_created'
  • python view_stream.py 'order_assigned'
  • python view_stream.py 'order_completed'

kinesis_local's People

Contributors

arijitsaha avatar

Watchers

James Cloos avatar  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.