Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Examples

Volley includes runnable examples in the volley-examples crate. Each demonstrates a different feature or pipeline pattern.

Running Examples

# Run any example
cargo run --example <name> -p volley-examples

# Run benchmarks in release mode
cargo run --example <name> -p volley-examples --release

Available Examples

ExampleDescription
in_memory_pipelineBasic pipeline with filter, key_by, window, and aggregate using in-memory source
kafka_pipelineKafka source to Kafka sink with windowed aggregation
windowed_pipelineEvent-time windowing with watermarks and late data handling
observable_pipelinePipeline with observability (Prometheus metrics, OpenTelemetry tracing)
protobuf_to_deltaProtobuf decode -> Delta Lake sink with partitioned writes
nested_proto_partitionedNested protobuf types with Hive-style partitioned writes
benchmark_throughputSingle-shot throughput benchmark across batch sizes and parallelism levels
benchmark_sustainedSustained throughput benchmark (10s run, batch=1000, parallelism=4)

Prerequisites

Most examples work out of the box. Some have additional requirements:

  • kafka_pipeline — requires a running Kafka broker at localhost:9092 and cmake installed
  • protobuf_to_delta, nested_proto_partitioned — requires a writable path for Delta table output
  • Benchmarks — run with --release for meaningful numbers

Walkthrough

See Your First Pipeline for a step-by-step walkthrough of the in_memory_pipeline example.