C# Class Orleans.KafkaStreamProvider.KafkaQueue.TimedQueueCache.TimedQueueCacheBucket

For backpressure detection we maintain a histogram of 10 buckets. Every buckets records how many items are in the cache in that bucket and how many cursors are pointing to an item in that bucket. In the TimedCache the bucket also takes note what is the newest and oldest members timespan because buckets also has a maximum timespan they can hold (this is done for better bucket distribution) We update the NumCurrentItems, NewestMemberTimespan and OldestMemberTimespan (when it's a new bucket) when we add and remove cache item (potentially opening or removing a bucket) We update NumCurrentCursors every time we move a cursor If the first (most outdated bucket) has at least one cursor pointing to it, we say we are under back pressure (in a full cache).
Mostrar archivo Open project: gigya/Orleans.KafkaStreamProvider Class Usage Examples

Private Properties

Property Type Description
UpdateNumCursors void
UpdateNumItems void

Private Methods

Method Description
UpdateNumCursors ( int val ) : void
UpdateNumItems ( int val ) : void