datakaveri / dx-auditing-server

IUDX Auditing Server
Apache License 2.0
0 stars 1 forks source link

Integrate Apache Flink with Audit Server for RabbitMQ Data Insertion into PostgreSQL #115

Open Gokul-KG opened 1 month ago

Gokul-KG commented 1 month ago

Description: The goal of this task is to integrate an Apache Flink process as a separate Verticle within the existing Vert.x server. The Flink process should:

  1. Read messages from a RabbitMQ queue.
  2. Insert the processed data into the same PostgreSQL database used by the Vert.x server.

Subtasks:

Create a new Flink processing Verticle. Configure the Flink environment to run within the Vert.x ecosystem.

Ensure the Verticle is deployed along with the main Vert.x server on startup.

Add RabbitMQ connection configurations in the Flink Verticle. Set up RabbitMQ consumer in Flink to read data from a specified queue. PostgreSQL Integration:

Add robust error handling mechanisms for RabbitMQ connection failures, PostgreSQL insertion issues, etc. Log errors and important events in the system for easy debugging.

Write unit and integration tests to verify that: Data is correctly consumed from RabbitMQ. Data is successfully inserted into PostgreSQL. The Verticle deployment and lifecycle management work as expected.