C# (CSharp) Orleans.KafkaStreamProvider.KafkaQueue.TimedQueueCache TimedQueueCacheBucket - 2 примера найдено. Это лучшие примеры C# (CSharp) кода для Orleans.KafkaStreamProvider.KafkaQueue.TimedQueueCache.TimedQueueCacheBucket, полученные из open source проектов. Вы можете ставить оценку каждому примеру, чтобы помочь нам улучшить качество примеров.
Похожие
Related in langs
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).