WCF Service - C # Must Send Results Continuously

Since this is a long question, rocky notes come first.

Cliff's Notes:
One client sends input to multiple services, and they continue to run and send results until the client tells them to stop or achieve a given maximum number of results.

Do you know how to do this, or do you have a C # example for sth. like this? Is it WCF and streaming the right toolbox for this? (Note that the result is user objects, so it's not exactly the same as streaming a file)

Detailed description of the problem:

Situation:

  • I have full control over the client code and services (independent of closed third-party materials).
  • everything in c #
  • We have one client who wants to perform one task and has several equal independent services for this. (equal = equal utility software, the hardware on which each service runs may vary → service speed may vary)
  • One task consists of "1000 pieces of work", which are all independent of each other.
  • Within the framework of one task, all 1000 works are based on the same input data element.

I mention A + B solutions, as I think they help explain the problem:

(A) - :
1. .
2. .
3. 1000
( ( ), 1000 , )
4. .
5.

(B) - :
, , 100.

, , , (100) , . , , , , .

(C) - , :
. ( , , . 1000 , 1000 "" , )

, 1000 . 10 . , , 1000 , . , 1000, 1000, , , , , . ( , )

, 1000, .

( , ,   - , , .  (Add. Inits , , ))

/, A + B, , (C). /- #, /? ( - , ) - # - , sth. ? ?

" " - , , , , ( WCF-noob, .)

+3
2

WCF , , , . , . WCF ( , ). WCF .

. :

  • B. . 10 1000 , 10 ( ) , , . , . - , . , . , .
  • - MSMQ. 1000 " ", . " ", ( ). , , - , . MSMQ , .. . ( 4 ).

Edit:

- , , , . :

  • Net.tcp
  • , ( IsInitiating IsTerminating OperationContract)
  • ,
  • Stop
  • , ( )

WsDualHttpBinding - , , HTTP.

+4

, (C), Asynchronous WCF. ...



WCF

0

All Articles