Skip to main content

Module tpc

Module tpc 

Source
Expand description

§Thread-Per-Core (TPC) Module

Implements thread-per-core architecture for linear scaling on multi-core systems.

§Components

Structs§

BackpressureConfig
Configuration for backpressure handling.
BackpressureConfigBuilder
Builder for BackpressureConfig.
CachePadded
A wrapper that pads a value to a 128-byte boundary to prevent false sharing.
CoreConfig
Configuration for a core handle.
CoreHandle
Handle to a core’s reactor thread.
CreditGate
Manages credits for a single receiver (core).
CreditMetrics
Metrics for credit-based flow control.
CreditMetricsSnapshot
Snapshot of credit metrics for reporting.
OutputBuffer
A pre-allocated buffer for collecting outputs without allocation.
PartitionedRouter
Routes RecordBatch rows to cores based on key columns.
SpscQueue
A lock-free single-producer single-consumer bounded queue.
TaggedOutput
Output tagged with its source index for coordinator routing.
TpcConfig
Configuration for the thread-per-core runtime.
TpcConfigBuilder
Builder for TpcConfig.

Enums§

CoreMessage
Messages sent to a core thread.
CreditAcquireResult
Result of attempting to acquire credits.
KeySpec
Specifies how to extract routing keys from events.
OverflowStrategy
Strategy for handling overflow when credits are exhausted.
RouterError
Routing errors with no heap allocation.
TpcError
Errors that can occur in the TPC runtime.