Search code examples
asp.netasp.net-web-apiazure-service-fabric

Azure service fabric - return result after long time


I'm using azure service fabric for our new service.

For the client-facing gateway I have a stateless service getting request, the actual work is done using reliable stateless actors.

As suggested by Sean McKenna - MSFT in this question, I put the incoming request in a ReliableQueue and storing the result in a ReliableDictionary.

The actors work time can take up to 10 minutes, So my question is how to push back the results to the client after such a long time?

Client side polling is not possible in our case.

For a start I'll need to support up to 10k request per day, later on it will get higher, much higher.


Solution

  • Service Fabric doesn't limit you in any way when it comes to something like this - you should try and approach the problem as you would in any other platform.

    You can use a pub/sub solution (e.g. Service Bus) or the client could even provide an API that can receive status updates from the actor/service.