Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Kafka producer configuration #23

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Marjori24
Copy link

No description provided.

@CLAassistant
Copy link

CLAassistant commented Dec 2, 2024

CLA assistant check
All committers have signed the CLA.

Signed-off-by: Marjori Martinez <[email protected]>
Signed-off-by: Marjori Martinez <[email protected]>
Signed-off-by: Marjori Martinez <[email protected]>
Signed-off-by: Marjori Martinez <[email protected]>
Signed-off-by: Marjori Martinez <[email protected]>
Signed-off-by: Marjori Martinez <[email protected]>
Signed-off-by: Marjori Martinez <[email protected]>
Signed-off-by: Marjori Martinez <[email protected]>
@@ -329,6 +341,23 @@ public static class AuditLoaderConf {
public static final String PROP_SECRET_KEY = "secret_key";
public String secretKey = "";

public static String PROP_KAFKA_ENABLE = "kafka_enableMSK";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is normal Kafka or Confluent not supported?

@@ -392,6 +469,9 @@ public void run() {
AuditEvent event = auditEventQueue.poll(5, TimeUnit.SECONDS);
if (event != null) {
assembleAudit(event);
if (kafkaEnable) {
sendToKafka(event);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it send a message to kafka when each event arrives? Will it cost FE too resource to process events?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants