# When Should You Use a Sink Connector vs Direct Database Writes?

**URL:** <https://forum.confluent.io/t/when-should-you-use-a-sink-connector-vs-direct-database-writes/38120>\
**Category:** Kafka Connect\
**Created:** [25 September 2025 14:14 UTC](https://forum.confluent.io/t/when-should-you-use-a-sink-connector-vs-direct-database-writes/38120 "2025-09-25T14:14:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zak23](https://avatars.discourse-cdn.com/v4/letter/z/9de0a6/32.png) [@zak23](https://forum.confluent.io/u/zak23)\
**Post date:** [25 September 2025 14:14 UTC](https://forum.confluent.io/t/when-should-you-use-a-sink-connector-vs-direct-database-writes/38120/1 "2025-09-25T14:14:20Z")

</div>

**Hello everyone,**

What are the best practices for deciding between:

- writing directly to the data source from a microservice

- publishing to Kafka and persisting via a sink connector?

When would you recommend one approach over the other?

---

<div class="post-metadata">

**Author:** ![dtroiano](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/dtroiano/32/1961_2.png) [@dtroiano](https://forum.confluent.io/u/dtroiano)\
**Post date:** [26 September 2025 13:47 UTC](https://forum.confluent.io/t/when-should-you-use-a-sink-connector-vs-direct-database-writes/38120/2 "2025-09-26T13:47:23Z")

</div>

Some reasons to consider Kafka en route to the external system, roughly in order of decreasing commonness IMO:

1. Spike resiliency / back pressure. If the microservice is subject to bursty loads that make direct writes to the external system risky (external system isn’t sized to handle the writes) or complex (e.g., throttling), Kafka can serve as a buffer between the the microservice and sink system
2. Resiliency with respect to sink system failures / downtime
3. Take advantage of connector’s implementation / properties. This would be connector-dependent, but e.g., some connectors handle sticky external sink client scenarios for you or give you desirable properties like idempotent writes
4. Stream processing, if applicable. Kafka can be used to process / transform the stream by way of a stream processing framework or within Kafka Connect, e.g., SMTs
5. Potential for other Kafka consumers / realtime use cases, if applicable

Consider direct writes if these aren’t applicable or don’t seem valuable enough (particularly weighing 1 and 2) to justify adding a box and arrows to the architecture.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [26 October 2025 13:47 UTC](https://forum.confluent.io/t/when-should-you-use-a-sink-connector-vs-direct-database-writes/38120/3 "2025-10-26T13:47:57Z")

</div>

Closed on 26 October 2025 13:47 UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
