C# (CSharp) Orleans.KafkaStreamProvider.KafkaQueue.TimedQueueCache TimedQueueCacheBucket - 2개의 예제가 발견되었습니다. 이것들은 오픈소스 프로젝트에서 추출된 C# (CSharp)의 Orleans.KafkaStreamProvider.KafkaQueue.TimedQueueCache.TimedQueueCacheBucket에 대한 실세계 최고 등급의 예제들입니다. 예제들을 평가하여 예제의 품질 향상에 도움을 줄 수 있습니다.
관련
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).