This repository contains an Apache Flink application for real-time sales analytics built using Docker Compose to orchestrate the necessary infrastructure components, including Apache Flink, Elasticsearch, and Postgres. The application processes financial transaction data from Kafka, performs aggregations, and stores the results in both Postgres and Elasticsearch for further analysis.

docker-compose up to start the required services (Apache Flink, Elasticsearch, Postgres).main.py helps to generate the sales transactions into Kafka.The DataStreamJob class within the FlinkCommerce package serves as the main entry point for the Flink application. The application consumes financial transaction data from Kafka, performs various transformations, and stores aggregated results in both Postgres and Elasticsearch.
transactions, sales_per_category, sales_per_day, sales_per_month).DataStreamJob.java: Contains the Flink application logic, including Kafka source setup, stream processing, transformations, and sinks for Postgres and Elasticsearch.Deserializer, Dto, and utils packages: Include necessary classes and utilities for deserialization, data transfer objects, and JSON conversion.jdbcUrl, username, and password variables.transactions, sales_per_category, sales_per_day, sales_per_month) and perform insert/update operations.$ claude mcp add FlinkCommerce \
-- python -m otcore.mcp_server <graph>