473,761 Members | 6,563 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Instant Communication in ASP.NET

Does anyone know of a good way of instant communication between two
users using an ASP.NET interface? I have always been a WinForms guy
and used sockets for communication. I have an SQL Server 2005 database
and was thinking of using Service Broker but i dont even know where to
start, I have thought of using remoting but I dont think there is a way
of the client being notified instantly, which is key. Any suggestions
greatly appreciated.

Dec 19 '06 #1
4 1524
Using ASP.Net? You must use the central server and "pull" requests -
you can't "push" to a web client. A common approach would be to use
AJAX and a javascript polling loop (every 10 seconds, say), so that
each client can keep asking "anything for me?"... but note that this
can have scalability issues, as each client will keep hitting the
server even when inactive. The 10s is probably too short, too...

Marc

Dec 19 '06 #2
Hi,

Benny wrote:
Does anyone know of a good way of instant communication between two
users using an ASP.NET interface? I have always been a WinForms guy
and used sockets for communication. I have an SQL Server 2005 database
and was thinking of using Service Broker but i dont even know where to
start, I have thought of using remoting but I dont think there is a way
of the client being notified instantly, which is key. Any suggestions
greatly appreciated.
There is a variant of Ajax named COMET. It's a way to send a request to
the web server, and delay the response until either the expected event
occurs, or a timeout. When the response arrives to the client, it is
processed, and then a next request is sent.

COMET works, but it has a few downsides: First, the web browser has only
two concurrent HTTP connection available to one web server (this is
according to the HTTP specifications) , and one of them will be "hogged"
by COMET. It means that there will be only one additional HTTP
connection to, for example, refresh a HTML page, download a file, etc...

Also, the web server gets extra load because of this implementation,
because the number of open connections at a given time is higher. If you
want to have that working in a productive environment, you might have to
upgrade your server.

The upside, of course, is that the reaction is as immediate as can be.

You'll find more information about COMET implementations on Google.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Dec 19 '06 #3

The Adobe Flash Player has the ability to maintain open two-way
communications with the server. You can use either Adobe Flash or
Adobe Flex to build an app that provides communication to your primary
app.

It supports communication over XML Sockets, which can easily be
implemented in .NET, or their proprietary RTMP binary protocol which
requires Flash Media Server.

Not as easy as a built-in .NET library but not that difficult either
if you have the time to learn.

Adobe's Flex SDK is free and there are several non-Adobe options for
generating SWF (OpenLaszlo and MTASC).

HTH,

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking Mid/Sr. .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On 18 Dec 2006 20:00:40 -0800, "Benny" <be***********@ gmail.com>
wrote:
>Does anyone know of a good way of instant communication between two
users using an ASP.NET interface? I have always been a WinForms guy
and used sockets for communication. I have an SQL Server 2005 database
and was thinking of using Service Broker but i dont even know where to
start, I have thought of using remoting but I dont think there is a way
of the client being notified instantly, which is key. Any suggestions
greatly appreciated.
Dec 19 '06 #4
Wow, I think that was the answer I was looking for. I considered AJAX
and the like but realized that in an environment with 50+ clients
polling one central server could be a heavy load, I needed an alternate
way to communicate through a standardize protocol like you have
suggested. Thank you very much for the suggestion, I will be
researching tonight, to say the least ;)

Samuel R. Neff wrote:
The Adobe Flash Player has the ability to maintain open two-way
communications with the server. You can use either Adobe Flash or
Adobe Flex to build an app that provides communication to your primary
app.

It supports communication over XML Sockets, which can easily be
implemented in .NET, or their proprietary RTMP binary protocol which
requires Flash Media Server.

Not as easy as a built-in .NET library but not that difficult either
if you have the time to learn.

Adobe's Flex SDK is free and there are several non-Adobe options for
generating SWF (OpenLaszlo and MTASC).

HTH,

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking Mid/Sr. .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On 18 Dec 2006 20:00:40 -0800, "Benny" <be***********@ gmail.com>
wrote:
Does anyone know of a good way of instant communication between two
users using an ASP.NET interface? I have always been a WinForms guy
and used sockets for communication. I have an SQL Server 2005 database
and was thinking of using Service Broker but i dont even know where to
start, I have thought of using remoting but I dont think there is a way
of the client being notified instantly, which is key. Any suggestions
greatly appreciated.
Dec 19 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
1993
by: Lucas Raab | last post by:
Are there any instant messenging programs out there for use in a Python app?? I've heard of Jabber, but never looke into it.
1
2383
by: Peter | last post by:
Hi all, I have a website where users login to and I wish to add Instant Messenger between 2 users.. for instance, clicking "IM" on someone's profile (assuming they're online of course) will prompt the other user if they wish to chat or not.. if they do.. initiate 1-on-1 chat. I've seen it done on faceparty.com which I believe uses DigiChat (java). Unfortunately it's too expensive to purchase so I wish to develop a simplistic version...
0
1819
by: Lynda Kilgore | last post by:
jGu ----qtHwhORV90yyhqJMOc Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html><head><style type=3Dtext/css>.eyebrow { FONT-WEIGHT: bold; FONT-SIZE= : 10px; TEXT-TRANSFORM: uppercase; COLOR: #ffffff; FONT-FAMILY: verdana,ar= ial,helvetica,sans-serif; TEXT-DECORATION: none } A.eyebrow:link { TEXT-DE= CORATION: none }</style><title>H</title><meta http-equiv=3DContent-Type co=
1
8590
by: alederer | last post by:
Hallo! I have the following situation: A db2 v6.1 client on AIX 4.3 (db2level reports U469703) and a OS/390 database version 6.1 . In some situations, I get the following error in my db2 CLI application: SQL30081N A communication error has been
3
43225
by: Tim Reynolds | last post by:
I support a .Net application running on a SERVER accessing MF Db2 data. Occasionally, we have some type of connection problem that we have been unable to debug up to this point. We typically receive one of these IBM.Data.DB2.DB2Exception messages: ERROR SQL30081N A communication error has been detected. Communication protocol being used: ‘TCP/IP'. Communication API being used: ‘SOCKETS'. Location where the error was detected:...
4
2351
by: Sa¹o Zagoranski | last post by:
Hi! I'm writing a simple 3D First person shooter game. It is a multiplayer game, where all the players connect to one server.
21
1945
by: dast | last post by:
Hi, I'm having trouble letting my background thread tell my main thread what to do. I'm trying to tell my main thread to open a form, but when my background thread ends, the form that I thought my main thread had opened disappears. Obviously there's something that I don't understand here. The background thread is run in another class on another form. How do I,
3
1426
by: MagicKat | last post by:
Can you explain what they mean by "instant member" for instance, in the article about arraylists, it says it's thread safe but it's instant members are not. What does that mean? http://msdn2.microsoft.com/en-us/library/system.collections.arraylist.aspx
0
9522
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10111
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9948
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9765
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8770
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7327
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5364
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3446
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.