-
1. Re: Clustered RESTful queue thoughts
clebert.suconic May 3, 2010 12:28 PM (in response to bill.burke)I'm not I understand this completely.. but wouldn't you need to setup consumer window size = 0 for slow consumers?
-
2. Re: Clustered RESTful queue thoughts
bill.burke May 3, 2010 1:15 PM (in response to clebert.suconic)So, a window size of 0 would allow me to pull the cluster for the next message?
-
3. Re: Clustered RESTful queue thoughts
clebert.suconic May 3, 2010 1:18 PM (in response to bill.burke)It wouldn't cache messages on the client. It would always go against the server.
What I understood is the caching was being a problem for your case.
-
4. Re: Clustered RESTful queue thoughts
bill.burke May 3, 2010 1:22 PM (in response to bill.burke)BTW, i'm trying to make RESTful consumers stateless, sessionless, through a pull model. For single node, one consumer receives the message and puts it within an in-memory local java.util.concurrent queue. A sessionless client asks to consume a message from the server and just pulls from this in-memory queue. The consumer blocks until the message is acknowledged by the client.
In a cluster, if a specific consumer is assigned a message, i don't have a great way of knowing which consumer to route the remote client to.
-
5. Re: Clustered RESTful queue thoughts
bill.burke May 3, 2010 1:24 PM (in response to clebert.suconic)Clebert Suconic wrote:
It wouldn't cache messages on the client. It would always go against the server.
What I understood is the caching was being a problem for your case.
A restful client would be stateless and sessionless, with no local code managing the connection to the server.