-
August 13th, 2009, 04:30 PM
#1
Reverse proxy - Nginx?
Hi
I am thinking about using reverse proxy in my app so that part of the site could be server by the web app server and push part by the Lightstreamer.
Up to now I have been using Nginx as reverse proxy, and I wanted to check if anyone has experience with Nginx+LightStreamer combination?
Many thanks!
Davorin
-
August 13th, 2009, 05:21 PM
#2
Do you mean that Nginx would intercept requests directed to Lightstreamer Server,
then forward them to the Server through a different HTTP connection?
This would partly limit Lightstreamer capabilities; see this post, or this one, for similar cases.
If you can instruct Nginx to only route packets to Lightstreamer (in a way similar to a load balancer) this would be ideal.
I can't answer on the insights of Nginx.
-
August 13th, 2009, 08:52 PM
#3
Originally Posted by
DarioCrivelli
Do you mean that Nginx would intercept requests directed to Lightstreamer Server,
then forward them to the Server through a different HTTP connection?
This would partly limit Lightstreamer capabilities; see
this post, or
this one, for similar cases.
If you can instruct Nginx to only route packets to Lightstreamer (in a way similar to a load balancer) this would be ideal.
I can't answer on the insights of Nginx.
I was thinking of using Nginx as reverse proxy / load balancer. Nginx would accept all incomming HTTP requests for domain, and based on url it would make http requests towards either app server (www.mydomain.com/app) or Lightstreamer (www.mydomain.com/lightstreamer).
So in this scenario Nginx would be terminating all client connections, and have open connections towards the app server(s) and Lightstreamer server. Acting as reverse proxy, Nginx is supposed ta scale well and at least accordingly to the data presented should be able to handle large number of parallel connections (it also uses async sockets).
What capabilities would be limited in this setup? Probably Adaptive streaming? Anything else?
Many thanks!
Davorin
-
August 14th, 2009, 10:39 AM
#4
It depends on how your reverse proxy manages persistent connections.
If it buffers the Server response until the whole content is received,
so that the response is sent to the client atomically,
then streaming is not possible at all.
Note that some client libraries can detect such case and switch to long polling,
but, if you ascertain that streaming is not possible,
you should directly configure the clients for long polling.
Otherwise, the only issues can be related to Adaptive Streaming.
Lightstreamer Server tries to minimize the number of sent packets
that are waiting to be read by the client
and the reverse proxy could interfere, by buffering more packets.
In case of network congestion, such packets could become obsolete
and could have been conflated.
-
February 18th, 2011, 01:37 AM
#5
Nginx
I have the same problem - using NGINX as a reverse proxy to LightStreamer (for push), and Tomcat (for static).
Reason: so that both can use port 80.
This is critical to my evaluation of the product.
If both can't run over port 80, then LS is out of the question for us.
-
February 21st, 2011, 10:08 AM
#6
Hi,
please can you expand on what problem are you experiencing?
Similar Threads
-
By vdhinesh in forum Client SDKs
Replies: 1
Last Post: December 7th, 2009, 12:36 PM
-
By Alessandro in forum Adapter SDKs
Replies: 0
Last Post: November 14th, 2008, 05:04 PM
-
By ksivasam in forum Client SDKs
Replies: 4
Last Post: January 16th, 2008, 07:58 PM
-
By Mone in forum Client SDKs
Replies: 0
Last Post: October 22nd, 2007, 10:20 AM
-
By DarioCrivelli in forum Client SDKs
Replies: 0
Last Post: June 14th, 2007, 04:59 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 04:04 AM.
Bookmarks