WCF Service Design Example

I need to create a WCF service that will accept thousands of requests every 5 minutes, each of which transmits a small (1-5 KB) text file.

The service will transfer the contents of the file to another assembly, which will process the rows and insert some records into the database. Nothing too heavy on this side.

I need help with the following aspects:

  • What WCF configuration should I use, will it give me the best performance? Service calls will come from the Internet, not from the internal LAN.
  • The service will accept requests every 5 minutes, which means that I have only 5 minutes to process all requests until the next cycle. Is MSMQ the best solution here?

Any examples online that I can read?

+4
source share
2 answers

For better performance, I assume you are talking about less latency. You must select a TCP transport, for example net.tcp . This document can help you decide which vehicle to choose.

About this part of MSMQ: will you receive a big request and start processing them in 5 minutes? If so, then your choice is correct: MSMQ will support this request queue, and you can work with them asynchronously.

+1
source

All Articles