Coder Social home page Coder Social logo

streaming_07_finial_project's Introduction

Streaming_07_Finial_Project

HANNA ANENIA

05/09/2024

Introduction

This project demonstrates a producer-consumer pattern using RabbitMQ, where flight numbers are generated and sent to a queue by the producer, and the consumer reads these flight numbers and processes them. The consumer also includes an alert system to notify when specific conditions are met.

Prerequisites

Before running this project, ensure you have the following installed: Python RabbitMQ Required Python libraries (pika, faker)

Installation

  1. Clone the repository:https://github.com/hanenia/Streaming_07_Finial_Project

  2. Create and activate a virtual environment python -m venv env .\env\Scripts\activate

Install the required Python packages:

pip install -r requirements.txt

Usage

Running the Producer

  1. The producer generates flight numbers using the Faker library and sends them to the RabbitMQ queue. Navigate to the producer directory:
  2. Run the producer script:
  3. Running the Consumer
  4. consumer_bag.py The consumer reads flight numbers from the RabbitMQ queue and processes them. It also contains an alert system that triggers based on specific conditions.

Additional Files

-flight_data.csv: A CSV file containing sample flight data. -util_logger.py: A utility for setting up logging. -tempCodeRunnerFile.py: Temporary file created by the code editor. -consumer_bag.py: An alternative or backup consumer script.

Sreenshot

![screenshot][defalt text]

streaming_07_finial_project's People

Contributors

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