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

feat: includes groupId parameter in Kafka Settings. #260

Merged
merged 2 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Liquid.Messaging.Kafka/KafkaFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ private static ConsumerConfig MapConsumerSettings(KafkaSettings settings)
BootstrapServers = settings.ConnectionString,
ClientId = settings.ConnectionId,
EnableAutoCommit = settings.EnableAutoCommit,
GroupId = settings.GroupId
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/Liquid.Messaging.Kafka/Liquid.Messaging.Kafka.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Copyright>Avanade 2019</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>8.0.0-beta-02</Version>
<Version>8.0.0-beta-03</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>
The Liquid.Messaging.Kafka provides producer and consumer patterns to allow the send and consumption of Messaging inside your microservice.
Expand Down
5 changes: 5 additions & 0 deletions src/Liquid.Messaging.Kafka/Settings/KafkaSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,10 @@ public class KafkaSettings
/// Indicates whether to be a compressed message.
/// </summary>
public bool CompressMessage { get; set; }

/// <summary>
/// Client group id string. All clients sharing the same group.id belong to the same group.
/// </summary>
public string GroupId { get; set; }
}
}
Loading