mail-archives/mono-list/2005-February/025582.html

102 строки
4.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-list] Mono, ASP.NET et Javascript push
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:rafael.teixeirabr%40terra.com.br">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="025581.html">
<LINK REL="Next" HREF="025583.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-list] Mono, ASP.NET et Javascript push
</H1>
<B>A Rafael D Teixeira
</B>
<A HREF="mailto:rafael.teixeirabr%40terra.com.br"
TITLE="[Mono-list] Mono, ASP.NET et Javascript push">rafael.teixeirabr@terra.com.br
</A><BR>
<I>Thu, 03 Feb 2005 19:57:59 -0200</I>
<P><UL>
<LI> Previous message: <A HREF="025581.html">[Mono-list] Mono, ASP.NET et Javascript push
</A></li>
<LI> Next message: <A HREF="025583.html">[Mono-list] Mono, ASP.NET et Javascript push
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25582">[ date ]</a>
<a href="thread.html#25582">[ thread ]</a>
<a href="subject.html#25582">[ subject ]</a>
<a href="author.html#25582">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Thu, 2005-02-03 at 19:14, Alain Perry wrote:
&gt;<i> On Thu, 3 Feb 2005 12:51:47 -0800 (PST), Joe Audette
</I>&gt;<i> &lt;<A HREF="mailto:joe_audette@yahoo.com">joe_audette@yahoo.com</A>&gt; wrote:
</I>&gt;<i> &gt; I don't think you should and probably can't keep a connection alive in a web
</I>&gt;<i> &gt; page.
</I>&gt;<i> &gt; The web is a stateless environment you request a page, you get a page,
</I>&gt;<i> &gt; you're done.
</I>&gt;<i>
</I>&gt;<i> It indeed is. But the method described (push) enables it to be. It is
</I>&gt;<i> still necessary to send dummy text to keep the connection alive from
</I>&gt;<i> time to time, much like a noop in FTP. But it is possible. An example
</I>&gt;<i> of this is the software that I was using until it became non-free to
</I>&gt;<i> do what my software will do. It was called webmessenger, was written
</I>&gt;<i> in PHP and was using javascript push. I belive you can still try the
</I>&gt;<i> non-free (as in GPL) version for free (as in gratis) at jabbix.com.
</I>&gt;<i>
</I>&gt;<i> &gt; I would suggest you can make additional requests as needed inside an IFrame
</I>&gt;<i> &gt; so the outer page is not refreshed but the page in the IFrame can carry on a
</I>&gt;<i> &gt; dialog back and forth with the server using multiple requests.
</I>&gt;<i>
</I>&gt;<i> This is called polling, and is not an efficient method either. I do
</I>&gt;<i> prefer the push method a lot.
</I>
Push is a scalability killer. As ASP.NET and JSP are geared towards
scalability, they don't match well your requirement.
ASP.NET is built upon extensive use of the postback method, what means
that your previous connection will normally get dropped every time the
user click or even type something in the page.
Polling is much better supported in ASP.NET/JSP.
If you really really want to cripple your web server (it is even worse
for a server farm, as PUSH connections, will make load balancing
unattainable), I suggest you to develop an asp.net handler (.ASHX) that
is free of the postback paradigm, but I would put it's returns on a
hidden IFRAME anyway, so that you don't have to lose the RAD features of
the .ASPX pages when designing them.
&gt;<i>
</I>&gt;<i> Thanks anyway,
</I>--
Rafael &quot;Monoman&quot; Teixeira
Mono Hacker since 16 Jul 2001 - <A HREF="http://www.go-mono.org/">http://www.go-mono.org/</A>
Mono Brasil Founding Member - <A HREF="http://monobrasil.redesolbrasil.org/">http://monobrasil.redesolbrasil.org/</A>
English Blog: <A HREF="http://monoblog.blogspot.com/">http://monoblog.blogspot.com/</A>
Brazilian Portuguese Blog: <A HREF="http://monoblog.weblogger.terra.com.br/">http://monoblog.weblogger.terra.com.br/</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="025581.html">[Mono-list] Mono, ASP.NET et Javascript push
</A></li>
<LI> Next message: <A HREF="025583.html">[Mono-list] Mono, ASP.NET et Javascript push
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25582">[ date ]</a>
<a href="thread.html#25582">[ thread ]</a>
<a href="subject.html#25582">[ subject ]</a>
<a href="author.html#25582">[ author ]</a>
</LI>
</UL>
</body></html>