Giter Site home page Giter Site logo

milinbhakta / data-pipeline Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 993 KB

This project orchestrates a real-time data pipeline using Docker Compose, PostgreSQL, RabbitMQ, Logstash, and Elasticsearch. It automates the process of publishing messages from a PostgreSQL 'user table' to RabbitMQ, which are then consumed by Logstash and indexed into Elasticsearch for efficient querying and analysis.

Dockerfile 49.78% PLpgSQL 50.22%
elasticsearch logstash pipeline postgres rabbitmq docker docker-compose

data-pipeline's Introduction

Data Pipeline With Postgres and Logstash

This Docker Compose configuration orchestrates a data pipeline involving PostgreSQL, RabbitMQ, Logstash, and Elasticsearch. The primary objective is to automate the process of publishing messages from the PostgreSQL 'user table,' consuming these messages via Logstash from RabbitMQ, and indexing the data into Elasticsearch for further analysis.

Project Overview

The project aims to establish a seamless data pipeline for real-time data processing and indexing using the following components:

Components:

  1. PostgreSQL: Serves as the primary data source with the 'usertable' acting as the source for data insertion.
  2. RabbitMQ: Facilitates message queuing and acts as the intermediary for transmitting messages upon data insertion events in PostgreSQL.
  3. Logstash: Consumes messages from RabbitMQ, processes them according to specified configurations, and prepares the data for indexing.
  4. Elasticsearch: The indexed data storage where Logstash indexes the processed data for efficient querying and analysis.

How the Data Pipeline Works

  1. Data Insertion:
    • Data inserted into the 'usertable' triggers a message publication to RabbitMQ.
  2. Message Processing:
    • Logstash, configured to consume messages from RabbitMQ, processes the received messages.
  3. Indexing:
    • Logstash indexes the processed data into Elasticsearch for efficient querying.

Testing the Data Pipeline

Requirements:

  • Docker and Docker Compose installed.
  • Execute docker-compose up to ensure services are running.

Testing Procedure:

  1. Insert Data into 'usertable':
    • Insert data into the 'usertable' in PostgreSQL using your preferred method or client.
  2. Confirm Message Publication:
    • Verify that a corresponding message has been published to RabbitMQ upon data insertion.
  3. Data Indexing Check:

Example Usage:

  1. Insert data into the 'usertable' using PostgreSQL.
  2. Visit http://localhost:9200/users/_search/?q=username after inserting data to check for indexed results.

Service Configuration and Customization

  • Detailed configuration and setup for each service can be found in their respective directories (./postgres, ./rabbitmq, ./logstash, ./elasticsearch).
  • Modify configurations or add customizations based on specific application requirements within these service directories.

Notes:

  • Ensure that the data inserted into the 'usertable' adheres to the expected schema for seamless processing.
  • Customizations and adjustments to the pipeline can be made within the service directories to fit unique project needs.

For further information or detailed configurations, refer to individual service directories and their respective configurations.

data-pipeline's People

Contributors

milinbhakta avatar milindbhakta avatar

Watchers

 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.