Apache Pulsar Topic Compaction Backlog and Retention Guard
Audit Apache Pulsar key-value changelog topics for uncompacted ledger bloat, trigger on-demand compaction, and verify convergence.
Schedule JSON ingestion and run parallel null, volume, and price-range quality checks with DuckDB. Conditional routing alerts on failures.
Data quality issues, null keys, unexpected volumes, or out-of-range values, compound silently and corrupt downstream dashboards and ML models. This blueprint provides a self-contained, scheduled pipeline that ingests a JSON dataset from an HTTP endpoint, stages it inside an embedded DuckDB database, runs three independent validation assertions in parallel, and conditionally routes the execution based on whether every check passes.
No external infrastructure is required. DuckDB runs fully in-memory inside the Kestra worker, making this pattern equally effective on a local laptop and a production Kubernetes cluster.
cron trigger.io.kestra.plugin.core.http.Request task fetches a JSON products dataset from a public REST API.io.kestra.plugin.jdbc.duckdb.Query uses json_extract and unnest to parse the nested JSON payload and materialise a typed relational table (products) in-memory with id, title, category, price, and stock columns.Parallel block fires three sibling DuckDB queries concurrently:id IS NULL.price <= 0.If task reads the three query outputs via Pebble expressions. A clean run logs a ✅ success message; any failure logs a ⚠️ warning with all three metric values included.else branch to Slack, PagerDuty, or an email notification task.Parallel task eliminates the need for custom thread pools or async glue code.retry and allowFailure blocks to any task without changing application code.plugin-jdbc-duckdb plugin runs analytical SQL directly in the worker process, with no connection string or credentials required.kestra-io/plugin-jdbc plugin bundle (includes DuckDB), included by default in the official Kestra Docker image.dummyjson.com (or replace with your own endpoint).uri in fetch-remote-data with your own internal API, S3 presigned URL, or Postgres export task.Parallel block, Kestra executes all of them concurrently at zero extra scheduling cost.store: true on the staging task with a CopyIn task to write the table to S3, GCS, or an external database after validation passes.else branch, add a io.kestra.plugin.slack.notifications.SlackIncomingWebhook task or a io.kestra.plugin.email.MailSend task to notify your team in real time.50 row-count minimum to a flow input so different namespaces can configure their own volume thresholds without duplicating the flow.