# Building a Resilient Event-Driven Data Lakehouse: MinIO Bucket Notifications to Apache Kafka

DevFeed: [Building a Resilient Event-Driven Data Lakehouse: MinIO Bucket Notifications to Apache Kafka](<https://devfeed.tech/articles/building-a-resilient-event-driven-data-lakehouse-minio-bucket-notifications-to-apache-kafka-64238.md>)

Original publisher: [Read original article](<https://blog.devops.dev/building-a-resilient-event-driven-data-lakehouse-minio-bucket-notifications-to-apache-kafka-6f8e33267278?source=rss----33f8b2d9a328---4>)

Author: Mobin Shaterian

Published: 2026-10-02T20:11:01Z

Content type: tutorial

Language: en

Sources: [DevOps.dev](<https://devfeed.tech/sources/devops-dev.md>)

Topics: [Apache Kafka](<https://devfeed.tech/topics/apache-kafka.md>), [MinIO](<https://devfeed.tech/topics/minio.md>), [event-driven data processing](<https://devfeed.tech/topics/event-driven-data-processing.md>), [Messaging](<https://devfeed.tech/topics/messaging.md>), [data-engineering](<https://devfeed.tech/topics/data-engineering.md>), [Event-Streaming](<https://devfeed.tech/topics/event-streaming.md>)

Tags: [apache](<https://devfeed.tech/tags/apache.md>), [apache-kafka](<https://devfeed.tech/tags/apache-kafka.md>), [apache-spark](<https://devfeed.tech/tags/apache-spark.md>), [api](<https://devfeed.tech/tags/api.md>), [architectures](<https://devfeed.tech/tags/architectures.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-s3](<https://devfeed.tech/tags/aws-s3.md>), [batch](<https://devfeed.tech/tags/batch.md>), [big-data](<https://devfeed.tech/tags/big-data.md>), [broker](<https://devfeed.tech/tags/broker.md>), [building](<https://devfeed.tech/tags/building.md>), [can](<https://devfeed.tech/tags/can.md>), [data](<https://devfeed.tech/tags/data.md>), [data-lake](<https://devfeed.tech/tags/data-lake.md>), [data-lakehouse](<https://devfeed.tech/tags/data-lakehouse.md>), [event](<https://devfeed.tech/tags/event.md>), [event-driven](<https://devfeed.tech/tags/event-driven.md>), [kafka](<https://devfeed.tech/tags/kafka.md>), [lakehouse](<https://devfeed.tech/tags/lakehouse.md>), [minio](<https://devfeed.tech/tags/minio.md>), [notifications](<https://devfeed.tech/tags/notifications.md>)

## AI overview

The article proposes using MinIO bucket notifications to signal completed datasets through lightweight Kafka events, avoiding repeated object-store polling and sending large data files through Kafka. To prevent consumers from seeing partially written output, writers upload partitions and a manifest first, then write a `_SUCCESS` marker; MinIO filters for put events with the `_SUCCESS` suffix, and consumers verify the manifest and checksums before processing. The setup example uses SASL_SSL with SCRAM-SHA-512, producer-only Kafka ACLs, a single-partition topic for global FIFO ordering, and MinIO's on-disk queue to retain unsent events during broker outages. Because delivery is at least once, consumers should deduplicate using the event sequencer. The article also recommends monitoring queue length, skipped events, and failed deliveries; a saturated queue can cause event loss.

## Source excerpt

Eliminate object storage polling and prevent race conditions using MinIO's native Kafka notification engine and the Sentinel Marker pattern. Special thanks to mohsen taleb In distributed architectures, few patterns cause as much latency and architectural debt as active polling. Having downstream consumers periodically query an object store like AWS S3 or MinIO to check whether a batch calculation or machine learning dataset has finished is inefficient, difficult to scale, and fraught with timing issues. Conversely, passing entire multi-gigabyte analytical datasets directly through a message broker like Apache Kafka can saturate network interfaces, spike memory usage, and exhaust broker storage. The optimal pattern is Claim-Check / Event-Driven Metadata Notification: the analytical engine writes the bulk data directly into object storage, while the storage layer itself notifies Apache Kafka that the dataset is ready. Downstream consumers simply receive a lightweight event containing the bucket and object path, then fetch only the files they need via standard S3 API primitives. However, there is a catch that catches many teams off guard: the partial read problem. Here is a guide to designing and implementing an enterprise-grade MinIO-to-Kafka event pipeline that solves this problem using the sentinel marker pattern, resilient local queueing, and secure SCRAM authentication. The Partial Read Challenge and the Sentinel Marker Pattern Distributed compute engines -- such as Apache Spark, Flink, Trino, or containerized data workers -- write dataset partitions concurrently across many parallel tasks. A single pipeline run may output dozens of Parquet files alongside a metadata manifest. If you configure MinIO to publish an event on every generic object creation (s3:ObjectCreated:*), your message broker will be flooded with dozens of notifications while the dataset is still being written. Downstream consumers will inevitably attempt to read partitions before the entire dataset