Ashish
Ashish

Reputation: 407

Azure service fabric reliable collection cleanup

As SF Reliable collection has bounded memory , Collections on a given machine are bounded by the amount of available memory or the amount of available disk space on a node, whichever is lower.

I got to know that Reliable collection is not a cache and does not have expiration or eviction policies. You cannot insert an item into a reliable collection and give it an expiry time eg. 1 hour from now.

As the memory is limited , is there any better pattern to clean-up items in Reliable collection?

I am not planning to use external distributed cache. Any thoughts?

Thanks, Ashish

Upvotes: 1

Views: 420

Answers (1)

LoekD
LoekD

Reputation: 11470

You could probably run a background worker using RunAsync to do cache eviction.

But if you need a cache, you can also look into running a container with Redis on your cluster. Redis can be configured to run 'high available' if needed.

Upvotes: 1

Related Questions