Leo Vo
Leo Vo

Reputation: 10330

Help me a solution for a .NET real-time application

I am developing a system which include a server app & a client app, note: the number of clients can be to million. These are my requirements:

Please help me some solution. Note: client is a WinForm application, and server is any kind of application which it can send data to all connected clients.

P/S: At the moment, my project use .NET Remoting but it is not suitable with my requirements because server can not send data to clients. I make a trick: Each client will send request to server each 2 seconds once to check that server has new data or no. If yes, client will receive data. I need a new solution to replace.

Thanks.

Upvotes: 0

Views: 1397

Answers (4)

Mikos
Mikos

Reputation: 8553

Have you looked at Jabber (XMPP)? Your need seems tailor-made i.e. you can trigger a send based on certain events etc. plus stateful data transfer etc.

Upvotes: 0

willbt
willbt

Reputation: 1885

Take a look at Duplex WCF Services

Word of warning, this does not work over https.

Alternatively the Windows Azure Service Bus also supports Duplex communication.

Upvotes: 3

Paul Creasey
Paul Creasey

Reputation: 28844

Well you need to start by asking yourself and important question, is a 2 second poll interval really a requirement? Can you make it less frequent.

Do you in fact want to use frequent polling, or would you prefer to use another technique such as long polling (where a connection is held open until there is new data, then it is closed and recreated) or a true comet/PUSH setup where the connection is always open.

Another important question is how much load is this site going to be under, a few users? a hundred, a million?!

Upvotes: 2

Jojo Sardez
Jojo Sardez

Reputation: 8568

If you are using web services I think it can't be accomplished since it is always synchronous.

Upvotes: 0

Related Questions