Let's say, I'm using Azure Service Fabric Stateful Service, with RemotingV2, and I want to store users phone numbers (That's the only thing my service does).
Task StoreNumber(string username, string phoneNumber); Task<string> GetNumber(string username);
I want to use the username for partitioning.
What's the elegant way to do that?
can I remove the
username parameter from the methods and somehow get it from the request?
Is there a better way?