is there a way to manage requests from the same client ip asynchronously?

35 views
Skip to first unread message

Ben McFerren

unread,
Nov 18, 2015, 7:26:47 PM11/18/15
to Ring
so that the following request will be put into a queue and wont process until the response of predecessor is sent?

James Reeves

unread,
Nov 18, 2015, 7:36:20 PM11/18/15
to Ring
Yes, you can block the thread, or if you're using a Ring adapter with some sort of bespoke asynchronous handling (like httpkit, for instance), then you can use that as well.

However, you realise, I hope, that what you want to do goes against pretty much every recommendation on how to write a web service?

- James

On 18 November 2015 at 23:56, Ben McFerren <mcfe...@seasidesyndication.com> wrote:
so that the following request will be put into a queue and wont process until the response of predecessor is sent?

--
You received this message because you are subscribed to the Google Groups "Ring" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ring-clojure...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages