question

maratg avatar image
0 Votes"
maratg asked maratg commented

Service Fabric - transfer files between services

What is the recommended way to send files between services?

Byte array? Stream?

Average file size is 10-100mb.

Use cases are:
- Accept file from user (AspNet MVC) and upload to Azure Blob Storage
- Download ~5 files from storage, create zip and respond to user with archive

Stream seems like to be more optimal for these scenarios, however I am not sure, how remoting works with streams.

Thanks you for help!

dotnet-aspnet-mvcazure-service-fabric
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I am currently looking into it and will get back to you shortly.

1 Vote 1 ·
maratg avatar image maratg karishmatiwari-msft ·

Found this thread:

https://github.com/microsoft/service-fabric-issues/issues/498

Quote:
"it is a terrible idea to use Service Fabric Remoting for streaming data! Use raw HTTP or split your communication into smaller messages. Service Fabric Remoting does implicit message buffering and that's awful for this specific scenario.

I personally do a lot of data transfer between services, but I use raw HTTP and it works just great."

What do you think about it?

0 Votes 0 ·

0 Answers