Git Product home page Git Product logo

commercingwithflink's Introduction

E-Commerce Analytics with Apache Flink, Elasticsearch and Postgres

This project contains an Apache Flink application designed for real-time sales analytics, utilizing Docker Compose to orchestrate Apache Flink, Elasticsearch, and Postgres. The application efficiently processes financial transaction data from Kafka, executes aggregations, and stores the results in Postgres and Elasticsearch for comprehensive analysis and view with Kibana.

Requirements

  • Docker
  • Docker Compose

Architecture

The architecture diagram below illustrates how the different components, such as Apache Flink, Elasticsearch, and Postgres, interact within this application: System Architecture.png

Installation and Setup

Follow these steps to set up the environment:

  1. Clone the Repository: Download this repository to your local machine.
  2. Navigate to Directory: Change to the directory containing the repository.
  3. Start Required Services: Use docker-compose up to launch Apache Flink, Elasticsearch, and Postgres.
  4. Generate Sales Transactions: Run main.py, the Sales Transaction Generator, to feed sales transactions into Kafka.
  5. Verify Container Status: Check that all Docker containers are operational.
  6. Initialize Flink Application: Begin the Flink application through the DataStreamJob class in the FlinkCommerce package.
  7. Data Storage in Flink: Observe how Flink organizes transaction data and aggregates results in tables like transactions, sales_per_category, sales_per_day, and sales_per_month.
  8. Analysis with Elasticsearch and Kibana: Understand the role of Flink in storing transaction data for subsequent analysis using Elasticsearch and Kibana.

Data from ElasticSearch and Kibana

The image below showcases sample data visualizations from ElasticSearch and Kibana, illustrating the insights that can be derived from the processed transaction data: data

commercingwithflink's People

Contributors

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