Route Pattern Reference

Route Pattern Reference

Pattern Base Class Use When Avoid When
Onramp KlokOnrampRoute External source publishes into Klok Caller requires immediate response
Onramp Sync KlokOnrampRouteSync Request-reply is unavoidable at ingress Caller can use async status, polling, or callback
Processing KlokProcessingRoute Broker-to-broker transformation, enrichment, split, aggregate, or bridge The route directly touches an external system
Offramp KlokOfframpRoute Klok delivers data to target system Target response must be returned to an original caller
Offramp Sync KlokOfframpRouteSync Request-reply to target system is required Target supports async delivery
Channel Adapter KlokChannelAdapterSourceRoute or KlokChannelAdapterSinkRoute Protocol conversion only, payload as received; or receiving with minimal handling so that no call is lost, a later leg maps (reason in the solution document) Mapping is required in this leg, or other systems or domains would read the Class X topic
Custom KlokCustomRoute Standard patterns cannot express the route You only want custom because standard patterns are unfamiliar
Enricher KlokEnrichSubRoute A side-service adds fields to a message The enrichment hides important ownership decisions
Schema Bridge KlokSchemaUpgradeBridge or KlokSchemaDowngradeBridge Migrating between model versions A normal consumer migration is simpler
Tenant Bridge KlokTenantBridgeRoute or processing route Cross-tenant translation is required Direct shared access with same model is sufficient
Splitter SplitIncomingMessage or related pattern Batch/file should become smaller events or chunks Target requires original file and claim check is better
Aggregator AggregateOutgoingMessages or related pattern Vendor cost, rate limits, or batch target require grouping Real-time individual events are required