Giter Site home page Giter Site logo

realtime-stream-processor's Introduction

realtime-stream-processor

Technologies Used

  1. Apache Kafka - Used for streaming data from source to destination. More about kafka:

  2. Temporal - It is a scalable and reliable runtime for Reentrant Processes. It's battle-tested at scale and used in production by companies like uber, netflix, snap (snapchat) etc. More about temporal:

  3. PostgreSQL - Used for persistance of workflows alongside temporal.

  4. MongoDB - Used for persistance of events after post processing

How to run

In the main directory, run the following command:

docker compose -f docker-compose.yaml up -d

This will spin up the technologies mentioned above. After this, you can run the following commands to start the consumer application:

go mod download
go run main.go

To mock the data for the application, you can run the following command:

go run mocker/main.go

Monitoring Interfaces

  1. Temporal UI :- https://localhost:8088
  2. MongoDB UI :- https://localhost:8081

Improvements

  1. Setup env variables for the application
  2. Implement retry logic for kafka consumer when it crashes (we need to not ack the messages so that they can be retried), another approach is to use dead letter queue but since we are using temporal, our main queue will only crash in cases when either kafka or temporal is down, so we can block the main queue.

realtime-stream-processor's People

Contributors

gurbaj5124871 avatar dependabot[bot] avatar

Watchers

 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.