-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
limit number of concurrent messages for kafka consumer (#742)
- Loading branch information
Showing
18 changed files
with
101 additions
and
301 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=SQS/@EntryIndexedValue">SQS</s:String></wpf:ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 0 additions & 113 deletions
113
test/Motor.Extensions.Hosting.Kafka_IntegrationTest/KafkaContainer.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 11 additions & 8 deletions
19
test/Motor.Extensions.Hosting.Kafka_IntegrationTest/KafkaFixture.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,33 @@ | ||
using System.Threading.Tasks; | ||
using TestContainers.Container.Abstractions; | ||
using TestContainers.Container.Abstractions.Hosting; | ||
using DotNet.Testcontainers.Builders; | ||
using DotNet.Testcontainers.Configurations; | ||
using DotNet.Testcontainers.Containers; | ||
using Xunit; | ||
|
||
namespace Motor.Extensions.Hosting.Kafka_IntegrationTest; | ||
|
||
public class KafkaFixture : IAsyncLifetime | ||
{ | ||
private readonly GenericContainer _kafka; | ||
private readonly KafkaTestcontainer _container; | ||
private const int KafkaPort = 9093; | ||
|
||
public KafkaFixture() | ||
{ | ||
_kafka = new ContainerBuilder<KafkaContainer>() | ||
_container = new TestcontainersBuilder<KafkaTestcontainer>() | ||
.WithPortBinding(KafkaPort, true) | ||
.WithKafka(new KafkaTestcontainerConfiguration("confluentinc/cp-kafka:6.1.9")) | ||
.Build(); | ||
} | ||
|
||
public string Hostname => _kafka.GetDockerHostIpAddress(); | ||
public int Port => _kafka.GetMappedPort(KafkaContainer.KAFKA_PORT); | ||
public string BootstrapServers => _container.BootstrapServers; | ||
|
||
public async Task InitializeAsync() | ||
{ | ||
await _kafka.StartAsync(); | ||
await _container.StartAsync(); | ||
} | ||
|
||
public async Task DisposeAsync() | ||
{ | ||
await _kafka.StopAsync(); | ||
await _container.StopAsync(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 0 additions & 66 deletions
66
test/Motor.Extensions.Hosting.NATS_IntegrationTest/NATSContainer.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.