Service Fabric approach for images uploading
<p>I have special <code>Images</code> stateless Reliable Service for images uploading. It uploads content to the Azure Blob Storage and returns back an url for uploaded item. Also my project has <code>ApiGateway</code> stateless Reliable Service with <code>OwinCommunicationListener</code> and authorization endpoint for API users. I want to add a new endpoint for authorized users allows to upload images in storage. </p>

<p>What is the most effective and the fastest way to do it?</p>

<p>I have two suggestions and do not know which is the best:</p>

<ol>
<li>Add a new endpoint to my <code>ApiGateway</code> Reliable Service, create proxy for Images stateless Service and pass arrived data to it for uploading.</li>
<li>Create an <code>OwinCommunicationListener</code> on my <code>Images</code> staless Reliable Service with external endpoint.</li>
</ol>

<p>In first case it looks like it takes more time than in the second. Because I need to spend some time for passing data between services. In the second case I do not spend time for transporting and just wait until my Azure Table Storage finished with uploading. But the major disadvantage of this approach is the fact that I need to configure authorization for <code>Images</code> <code>OwinCommunicationListener</code> and make sure it handles external authorized requests correctly.</p>