Coder Social home page Coder Social logo

satyam245 / realtime-orders-data-processing Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 20 KB

"Real-Time Data Processing with GCP Pub/Sub and DataStax Cassandra" is a project demonstrating the integration of Google Cloud Platform's Pub/Sub and DataStax Cassandra for efficient real-time data processing. It handles orders and payments data streams, ingesting them via Pub/Sub and storing them in Cassandra tables.

Python 100.00%

realtime-orders-data-processing's Introduction

Real-Time Data Processing Project with GCP Pub/Sub and DataStax Cassandra

This project demonstrates real-time data processing using Google Cloud Platform (GCP) Pub/Sub for data streaming and DataStax Cassandra for data storage. The project includes the following functionalities:

  • Producing orders data in the orders_data topic.
  • Generating payments data for orders and sending them to the payments_data topic.
  • Consuming data from the orders_data topic and inserting the data into a Cassandra table. If an order ID is already present, it publishes the order record to the dlq_orders_data topic.
  • Consuming payments data, updating payment columns in the same Cassandra table. Published to dlq_payment_data topic for missing orders.

Project Structure

  • producer.py: Python script for producing orders (orders-data-producer.py) and payments data (payments-data-producer.py) to Pub/Sub topics.
  • consumer.py: Python script for consuming data from Pub/Sub topics and updating Cassandra tables. Orders-data-consumer.py fetches the data from order_data topic and ingest-in-fact-table.py fetches from payments_data.
  • requirements.txt: List of Python dependencies required for the project.

Prerequisites

Before running the project, ensure you have the following installed and set up:

  • Python 3.x
  • Google Cloud SDK
  • DataStax Cassandra
  • Access to GCP Pub/Sub and DataStax Cassandra credentials

realtime-orders-data-processing's People

Contributors

satyam245 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.