[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [jetty-users] Streaming data TO Jetty?
- From: Simone Bordet <sbordet@xxxxxxxxxxx>
- Date: Mon, 14 May 2012 10:43:01 +0200
- Delivered-to: firstname.lastname@example.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=DbFi8Xn8DgZIMC8JRKkR2zhcKr4/psEdgdGlaycL7jQ=; b=AEwd2iB1ydlvsA91wB8ZXP82nF6o2jpZ0G71+U2j+994onjlbo8mrjTkj8kDtHWZs1 WM6rf7BmpOjxCHJVHqtV2lW4zZS8k8IUl3AZdxNhYtlHkkEDgBHpG/CqfdtxjenQb4x3 q2+xPJQdV0YZ4SRjIaDUaSze6lxk+KgI2Kv/w8Dcb0rL6/0Ws6gvcTvBtIJr+c3WuCzV ryokwpZ1xqTs32bIJSqHiKrOgODTdHL1aO2aR6Y6oeg4Xba5Cm14kO5T4JC0QMk8Nn5B yPt9z40l+E2+2RdRcC85vh78Rt8Ltkk4qQmKjJZeksEUMc1O0NRRvf3Tszkc3svFH5BN 237Q==
On Mon, May 14, 2012 at 7:20 AM, Otis Gospodnetic
> I'd like to be able to push data (more or less a continuous stream) from
> clients (e.g. using Apache HttpClient library) TO Jetty.
> I currently have a system where clients make use of KeepAlives, which is
> nice, but they still issue an explicit HTTP POST requestÂto JettyÂevery N
> Is there a way to avoid making explicit HTTP requests like that andÂwould
> streaming the data (somehow) actually be more scalable than issuing explicit
Depends on the loads we're talking about. I have seen Jetty serving
40k and more POSTS per second, so "more scalable" depends on your
> Is this doable and how exactly does one stream data to Jetty?
A good viable alternative is to use WebSocket.
Jetty has a WebSocket client that you can use to stream data to the
server, and that is way more efficient than HTTP.
For a comparison, see
A full fledged solution would be to use CometD (http://cometd.org),
that gives you authentication, network failure detection and automatic
reconnection, an extensible framework (with already available
extensions, for example for message acknowledgement, etc.), transport
fallback, etc., etc.
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless.ÂÂ Victoria Livschitz