Compojure-api, spec-tools, swagger,

2018-05-14 Thread Dave Tenny
I'm using compojure-api 2.0.0-alpha19, spec-tools 0.6.1, and trying to generate swagger pages with :spec coercion in compojure-api. I know this is a work in progress but I'm not an expert in any of these tools and thought I'd ask here before I write pesky and likely incorrect issues in the Meto

Re: Asynchronous http poll

2018-05-14 Thread Didier
Its hard to answer without additional detail. I'll make some assumptions, and answer assuming those are true: 1) I assume your S1 API is blocking, and that each request to it is handled on its own thread, and that those threads come form a fixed size thread pool with a size of 30. 2) I assume

Re: Asynchronous http poll

2018-05-14 Thread Didier
Oh, I forgot something important. If you're hoping to have multiple hosts, and run this application in a distributed way, you really should not do this that way. Things get a lot more complicated. The problem is, your request queue is local to a host. So if the client creates the Future on S1 o