?
Solved

event driven WCF for Downloading PDF

Posted on 2013-06-01
1
Medium Priority
?
275 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
farooqam earned 2000 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Optimized for private cloud infrastructures and datacenters, Nano Server is minimalistic, yet super-efficient, OS for services such as Hyper-V and Hyper-V cluster. Learn how you can easily deploy Nano Server and unlock its power!
Windows Server 2003 introduced persistent Volume Shadow Copies and made 2003 a must-do upgrade.  Since then, it's been a must-implement feature for all servers doing any kind of file sharing.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

718 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