Solved

event driven WCF for Downloading PDF

Posted on 2013-06-01
1
268 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

How to Backup Ubuntu to Amazon S3

CloudBerry Backup offers automatic cloud backup and restoration for Linux. It has both GUI and command line interface (CLI) ensuring its flexibility in use. Find out more

Join & Write a Comment

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…
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now