---
title: "Comment by VyOR on \"Kafka Producer - C# Sync vs Async\" | Hashnode"
description: "Not fair test, because during async you are awaiting delivery result, but with sync not (actually fire and forget). Call flush after sync produce to await callb"
url: "https://hashnode.com/posts/kafka-producer-sync-vs-async/63d169ba8835308a18994333/comment/6660cf97c04b7e81d44d942e"
---

[Discussion](https://hashnode.com/posts/kafka-producer-sync-vs-async/63d169ba8835308a18994333)

Comment [Kafka Producer - C# Sync vs Async](https://hashnode.com/posts/kafka-producer-sync-vs-async/63d169ba8835308a18994333)

[VyOR](https://hashnode.com/@VyOR)

[Jun 5, 2024](https://hashnode.com/posts/kafka-producer-sync-vs-async/63d169ba8835308a18994333/comment/6660cf97c04b7e81d44d942e)

Not fair test, because during async you are awaiting delivery result, but with sync not (actually fire and forget). Call flush after sync produce to await callback get called

[VyOR](https://hashnode.com/@VyOR)

[Jun 5, 2024](https://hashnode.com/posts/kafka-producer-sync-vs-async/63d169ba8835308a18994333/comment/6660cf97c04b7e81d44d942e#reply-6660d3d3c9425cb4afa50dd8)

Result with flush | Method | Mean | Error | StdDev | Allocated | |------------------- |---------:|---------:|---------:|----------:| | KafkaProducerSync | 15.90 ms | 0.216 ms | 0.192 ms | 6.32 KB | | KafkaProducerAsync | 15.55 ms | 0.214 ms | 0.200 ms | 6.77 KB |
