ksqlDB

SQL streaming engine over Kafka Streams with persistent queries and materialized tables.

Provider
default
Category
Messaging
Properties · 5 set by this component
propertytypevaluesrequiredkind defaultthis component
autoOffsetReset · component propertyenumearliest | latestnolatestinherited
checkpointIntervalSecondsinteger—no—▸ 2
deploymentMode · component propertyenuminteractive | headlessnointeractiveinherited
exactlyOnceboolean—nofalse▸ false
instancesinteger—no—inherited
lateDataPolicyenumdrop | shift | sidelineno—inherited
managedboolean—nofalse▸ false
stateBackendenummemory | rocksdb | externalnomemory▸ rocksdb
streamThreads · component propertyinteger—no4inherited
watermarkSecondsinteger—no—inherited
windowingenumnone | event-time | processing-timenonone▸ event-time
Rules that apply · 1

Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.

windowed-aggregation-without-watermark

Event-time windows need a watermark to know when a window is complete. Without one the processor either waits forever or closes windows early and silently drops late events.

  • — all of these hold:
  • — the node's `windowing` is "event-time"
  • — the node's `watermarkSeconds` has no value
Use it in a design
nodes:
  - { id: "ksqldb", component: "ksqldb" }
Other Stream processor products · 33
Realtime Compute for Apache Flinkalibaba-flinkalibabacloudstream-processorAmazon EventBridge Pipesaws-eventbridge-pipesawsstream-processorAmazon Data Firehoseaws-firehoseawsstream-processorAmazon Managed Service for Apache Flinkaws-managed-flinkawsstream-processorAmazon OpenSearch Ingestionaws-opensearch-ingestionawsstream-processorAzure Stream Analyticsazure-stream-analyticsazurestream-processorCloudflare Logpushcloudflare-logpushcloudflarestream-processorCloudflare Pipelinescloudflare-pipelinescloudflarestream-processorArroyoarroyostream-processorApache Beambeamstream-processorBytewaxbytewaxstream-processorDrasidrasistream-processorApache Flinkflinkstream-processorKafka Streamskafka-streamsstream-processorLogstashlogstashstream-processorMaterializematerializestream-processorApache NiFinifistream-processorNorikranorikrastream-processorRedpanda Connectredpanda-connectstream-processorRisingWaverisingwavestream-processorApache Samzasamzastream-processorSnowplowsnowplowstream-processorSpark Structured Streamingspark-streamingstream-processorApache Stormstormstream-processorGeneric stream processorstream-processorstream-processorTremortremorstream-processorGoogle Cloud Dataflowgoogle-dataflowgcpstream-processorManufacturing Data Enginegoogle-manufacturing-data-enginegcpstream-processorActivity Tracker Event Routingibm-activity-tracker-event-routingibmstream-processorIBM Cloud Logs Routingibm-logs-routingibmstream-processorIBM Cloud Metrics Routingibm-metrics-routingibmstream-processorOCI Connector Huboci-connector-hubocistream-processorOCI GoldenGate Stream Analyticsoci-goldengate-stream-analyticsocistream-processor
Source
# yaml-language-server: $schema=../../schema/component.schema.json
# ksqlDB: SQL streaming engine over Kafka Streams. "The processing semantics to use for persistent
# queries. The default is at_least_once", the commit interval defaults to 2000 ms, auto.offset.reset
# defaults to latest and Confluent Platform runs 4 stream threads
# ("Confluent Platform, ksqlDB Server configuration parameters"). State stores are RocksDB backed.
schemaVersion: "1"
type: "component"
id: "ksqldb"
kind: "stream-processor"
provider: "default"
docs: "https://docs.confluent.io/platform/current/ksqldb/reference/server-configuration.html"
defaults:
  managed: false
  windowing: "event-time"
  checkpointIntervalSeconds: 2
  exactlyOnce: false
  stateBackend: "rocksdb"
properties:
  autoOffsetReset:
    type: "enum"
    values: ["earliest", "latest"]
    default: "latest"
  streamThreads:
    type: "integer"
    default: 4
  deploymentMode:
    type: "enum"
    values: ["interactive", "headless"]
    default: "interactive"

The same page as markdown, for an agent: /catalogue/components/ksqldb.md