Solved

event driven WCF for Downloading PDF

Posted on 2013-06-01
1
270 Views
Last Modified: 2014-11-12
our company  provide  WEB Service to client - fill out documents on line.
Now Clients want  to download  pdf document to their client side.
Some document are huge, And we have a lot of clients.
What the best scenario  could be in the situation ?
Ideally I would like to have  some event driven Windows Service.
So when document is filed  out , event occurred. If Client is subscribed to this event,
WCF  download the pdf to the client side . This way , I guess we avoid transferring huge amount of data via network.
So should I use WCF? Or it could be another architectural solution?
0
Comment
Question by:Yampolka
1 Comment
 
LVL 1

Accepted Solution

by:
farooqam earned 500 total points
ID: 39217919
While a publish-subscribe scenario is possible with WCF, it may not be appropriate in your scenario since your clients are remote which precludes the use of NetTcpBinding or NetNamedPipes binding. Using WSDualHttpBinding is troublesome as well.

A more appropriate solution would have the server send a message to a queue which the client can monitor. The message's payload would be the PDF document. You may want to have a look at Windows Azure service bus and queues if Azure is a possibility for you.

But a more simpler solution would be to give the client the URL of the PDF document when it is ready - a rest style service. Either way you are going to have to transfer possibly large files over the network so may as well make the solution as simple as possible.

Hope this helps.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In previous Articles, we have discussed how we can upload a file using .asmx web service and isolated storage space. Here, in continuation to the topic, I am going to discuss how we can use WCF for the same purpose. Steps: 1.Create the silverli…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question