feat: added kafka events for authentication create and update #4991
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat: added kafka events for authentication create and update clickhouse schemas
Type of Change
Description
This PR introduces Kafka events for authentication create and update operations. When an authentication record is inserted or updated, an event will now be pushed to the Kafka topic hyperswitch-authentication-events. This feature enables real-time analytics for authentication processes.
Additionally, this PR includes a script to create the necessary ClickHouse schemas to store and query the authentication data.
Changes:
Added Kafka event publishing for authentication create and update operations.
Added script for creating ClickHouse schemas for authentication data.
Additional Changes
Motivation and Context
How did you test it?
Pre-requisites
Setting up a 3DS Authenticator and a Payment Processor
request_external_three_ds_authentication
set totrue
succeeded
Verification:
Open ClickHouse UI at
http:https://localhost:8123/play.
Query the authentication table to verify the data:
Checklist
cargo +nightly fmt --all
cargo clippy