ChainGraph API Documentation / @badaitech/chaingraph-channel / types / BaseChannelConfig
Interface: BaseChannelConfig
Defined in: types/ChannelConfig.d.ts:8
Base configuration for all channel implementations.
Extended by
Properties
cleanupStrategy?
optionalcleanupStrategy:BufferCleanupStrategy
Defined in: types/ChannelConfig.d.ts:28
Buffer cleanup strategy when maxBufferSize is reached.
- min-position: Keep items from slowest subscriber forward (fair to all)
- sliding-window: Always keep last N items (simple, may drop slow consumers)
- time-based: Remove items older than maxBufferAge
- none: No cleanup (unbounded growth)
Default
ts
'min-position'maxBufferAge?
optionalmaxBufferAge:number
Defined in: types/ChannelConfig.d.ts:36
Maximum age of buffered items in milliseconds (for time-based cleanup).
Only used when cleanupStrategy is 'time-based'.
Default
ts
60000 (1 minute)maxBufferSize?
optionalmaxBufferSize:number
Defined in: types/ChannelConfig.d.ts:17
Maximum buffer size (0 = unbounded)
When buffer exceeds this size, cleanup is triggered based on cleanupStrategy.
Default
ts
1000 for InMemoryChannelDefault
ts
0 for DBOSChannel (database-backed, no in-memory buffer limit)