Questions tagged [reliable-dictionary]

14 questions
1
vote
0 answers

IAsyncEnumerator item becomes null

While iterating my ReliableDictionary with an enumerator, the "Current.Value" returns null because the line "totalLength += val.Length;" throws NullPointerException. How is this possible? public async Task RemoveItemsPeriodically() { try { …
1
vote
1 answer

How to make Service Fabric Reliable collections case-insensitive?

I have a Stateful Service Fabric service and create, update or read data using IReliableDictionary created with the following code: var dictionary = await StateManager.GetOrAddAsync>(ReliableDictionaryName); //…
1
vote
2 answers

Call GetOrAddAsync in the OnOpenAsync method

I use a StatefulService with a IReliableDictionary. Currently, I call StateManager.GetOrAddAsync everywhere I need this dictionary. Is it best practice to call one time only StateManager.GetOrAddAsync in the…
1
vote
1 answer

Can I get an item without lock from reliableDictionary in service fabric

Using TryGetValueAsync to get an item from reliable dictionary either has a default lock which I assume is shared lock or a write lock which will block the write in other transaction, is there a way to get an item from reliable dictionary without…
Jason
  • 11
  • 3
1
vote
1 answer

Service Fabric - Reliable Dictionary Encryption model

This question is related to Reliable objects used in Service Fabric. As we know that objects like Reliable Dictionary are stored in memory, which ultimately means that they are stored in some disk. Do we consider this data as "Data at rest" ? If…
1
vote
1 answer

Reliable dictionary vs Redis Cache

I want to implement caching for Cosmos DB data. I read about Reliable Dictionary and Redis Cache. I want to know: (1) When to use Reliable Dictionary as a caching mechanism and what is the duration and capacity of cache? (2) Redis cache is…
RKh
  • 13,818
  • 46
  • 152
  • 265
0
votes
1 answer

IReliableDictionary does not contain a definition for Select

I am trying to convert Reliable dictionary object to IList or IEnumerable but I'm getting error for contactDetails.Select as IReliableDictionary does not contain a definition for 'Select' and no accessible extension method…
Nadeem Shaikh
  • 362
  • 5
  • 23
0
votes
0 answers

Reliable Dictionary of Reliable Dictionaries

Can I have a reliable dictionary which holds another reliable dictionary as its value? var dicts = await StateManager.GetOrAddAsync>>("Dictionaries"); My first try gave a serialization…
0
votes
1 answer

Service Fabric: View contents of Reliable Dictionary while local debugging

Is there a way to view the contents of a reliable dictionary while local debugging. I can't find any property which gives me the contents.
Sunil Kumar
  • 390
  • 1
  • 7
  • 25
0
votes
0 answers

ReliableCollection reverse index

I am in the process of building a StatefulService and I'd like to store the data in a reliable collection My class looks like this: public class Item { public string Value { get; set;} public int Count {get; set;} public string[] Metadata…
0
votes
1 answer

Access records locked by another transaction in Service Fabric reliable indexed dictionary

In our application, we are using service fabric indexed dictionaries to store data. We are also using Service Fabric Queryable package to add querying capabilities on our collections. In our case, we are having a transaction in which we do multiple…
0
votes
0 answers

What the way to query the reliable collection(IReliableDictionary) in Service Fabric?

we have scenario where reliable dictionary holds around 100000 records, each record contains bool property indicates whether its active or inactive record. i need to fetch only active record from the collection. I used below…
0
votes
1 answer

Service Fabric Stateful Service in Azure - RAM usage keeps growing. Possible memory leak

I am running a Service Fabric application on a cluster in Azure. The cluster has two scale sets: 4x B2ms nodes where a stateful service type is placed with Placement Constraints (Primary Scale Set) 2x F1 nodes where a stateless service type is…
0
votes
2 answers

Service Fabric Reliable Dictionary parallel reads

I have a Reliable Dictionary partitioned across a cluster of 7 nodes. [60 partitions]. I've setup remoting listener like this: var settings = new FabricTransportRemotingListenerSettings { MaxMessageSize =…
teeboy
  • 408
  • 3
  • 13