Skip to content

Commit bac259c

Browse files
committed
ran several load tests, one of them being a test with 500,000 messages with a 6000 batch capacity n 2000ms window. Each batch averaghe around 420ms
1 parent 2b858fd commit bac259c

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

example-app/src/main/java/com/example/kafkaexample/service/OrderProcessingService.java

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,20 @@ public class OrderProcessingService {
1818

1919
private static final Logger logger = LoggerFactory.getLogger(OrderProcessingService.class);
2020

21-
@DameroKafkaListener(topic = "orders", dlqTopic = "test-dlq", eventType = com.example.kafkaexample.model.OrderEvent.class, maxAttempts = 3, delay = 1000, delayMethod = DelayMethod.FIBONACCI, fibonacciLimit = 15, nonRetryableExceptions = {
22-
IllegalArgumentException.class,
23-
ValidationException.class
24-
}, deDuplication = false, openTelemetry = true, batchCapacity = 4000, batchWindowLength = 1000, fixedWindow = true
25-
21+
@DameroKafkaListener(
22+
topic = "orders",
23+
dlqTopic = "test-dlq",
24+
eventType = com.example.kafkaexample.model.OrderEvent.class,
25+
maxAttempts = 3,
26+
delay = 1000,
27+
delayMethod = DelayMethod.FIBONACCI,
28+
fibonacciLimit = 15,
29+
nonRetryableExceptions = {IllegalArgumentException.class, ValidationException.class },
30+
deDuplication = false,
31+
openTelemetry = true,
32+
batchCapacity = 6000,
33+
batchWindowLength = 2000,
34+
fixedWindow = true
2635
)
2736
@KafkaListener(topics = "orders", groupId = "order-processor", containerFactory = "kafkaListenerContainerFactory")
2837
public void processOrder(ConsumerRecord<String, String> record, Acknowledgment ack) {
36.9 KB
Loading

0 commit comments

Comments
 (0)