Welcome to WebmasterWorld Guest from 35.172.111.215

Forum Moderators: ocean10000

Message Too Old, No Replies

Pushing messages from server to client

How is it done?

     
10:16 pm on Jan 8, 2007 (gmt 0)

New User

10+ Year Member

joined:May 17, 2005
posts:37
votes: 0


This is the sitch:

We have an admin system for our web site. We review our customers orders, uploads etc regularly, but there's always a time-lag.

Since we're always online, we really want to "push" data or messages to our Windows desktops or web browsers, so that the moment a customer places an order, something pops up on our screens.

Is this so hard to do in .net? What are our options?

G.

7:42 am on Jan 10, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 24, 2005
posts:965
votes: 0


It's more a network issue. If you're behind a firewall or NAT then it's going to be harder.

You would probably be better off using pull, but at a faster interval. Is the difference between a pull every 10 seconds and a genuine instant push going to matter to you?

10:42 am on Jan 10, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 13, 2002
posts:2175
votes: 0


Sounds like a good one for AJAX, get a control on the screen to re-query the database every 10 seconds

Its going to use a lot of resources though, why not look at a more creative solution to the whole problem like automating the order processing and just printing a batch of invoices every hour.

10:41 pm on Jan 22, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 13, 2005
posts:1078
votes: 0


Or have it kick off an email to you?
12:40 pm on Jan 23, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 12, 2002
posts:1482
votes: 0


Take a peek at .NET Remoting, and a client-subscribe method. The best examples are chat/IM tutorials.