-
Notifications
You must be signed in to change notification settings - Fork 0
Examples
synthaicode edited this page Oct 25, 2025
·
6 revisions
- Start with Shared Prerequisites and How to Run.
- Then pick a category and example that fits your task.
docker-compose -f tools/docker-compose.kafka.yml up -d
cd examples/basic-produce-consume
dotnet run
- Install the .NET 8 SDK
- Start local Kafka + Schema Registry + ksqlDB
docker-compose -f tools/docker-compose.kafka.yml up -d
- Example:
basic-produce-consumecd examples/basic-produce-consumedotnet run
- Each example includes its own
appsettings.json(or see its README)
-
basic-produce-consume: Producer/Consumer fundamentals. SendBasicMessageand receive withForEachAsync. -
hello-world: Minimal setup - define a POCO, send, wait, and receive (all inProgram.cs).
-
configuration: Minimalappsettings.jsonand Builder setup (connection/Topic/Consumer/Producer). -
configuration-mapping: Switch logging settings between Development and Production. -
schema-attributes: Use[KsqlKey],[KsqlDecimal], and[KsqlTimestamp]. -
headers-meta: Handling message headers and metadata.
-
query-basics: Core LINQ -> KSQL flow (introduces View/ToQuery). -
query-filter: Filtering with.Where(...). -
view-toquery: Fundamentals of View/ToQuery. -
table-cache-lookup: Refer to a local cache via[KsqlTable]. -
pull-query: Issue Pull queries against materialized views.
-
windowing: Live aggregation (Push) and a 1-minute -> 5-minute roll-up atop TUMBLING basics.- Unified from
examples/tumbling-live-consumerandexamples/rollup-1m-5m-verify.
- Unified from
-
continuation-schedule: Continuation-based scheduling sample (useTumbling(..., continuation: true)and includeWindowStart()once inSelect). -
bar-1m-live-consumer: Monitorbar_1m_livedirectly with a dedicated POCO.
-
error-handling: Basics ofOnError/Retry (introduces retry strategies). -
error-handling-dlq: Park invalid messages in a DLQ (.OnError(ErrorAction.DLQ)). -
manual-commit: Manage commits manually (autoCommit: false). -
retry-onerror: Retry patterns.
-
streamiz-clear: Clear Streamiz local state caches (RocksDB). One-off maintenance tool.- Run:
dotnet run --project examples/streamiz-clear/StreamizClear.csproj
- Run:
-
runtime-events: Observe runtime/diagnostic events and counters.
-
daily-comparison: Daily aggregation - import rates, roll up 1/5/60-minute data, then verify daily totals. -
oss-bars-verify: Verify OSS around bars. -
deduprates-producer: Produce de-duplicated rates. -
rows-last-assignment: Deterministic last-value assignment patterns with traces.
- Function/type mapping: Function-Support
- KSQL API usage: KSQL-API
- Configuration details: Configuration-Reference
- Getting started: Quick-Start
Guide
Core Concepts
Tumbling
- Tumbling-Overview
- Tumbling-Definition
- Tumbling-Consumption
- Tumbling-Topics-Config
- Tumbling-State-Store
- Tumbling-Schedule-Last
- Tumbling-Migration
Operations
- Produce-Consume-and-DLQ
- Operations-Startup-and-Monitoring (Index)
- Operations-Startup
- Lag-Monitoring-and-Tuning
- Streamiz-Clear
- Appsettings
- Examples
Reference