[erlang-questions] Heavy duty erlang HTTP/REST client

Fred Hebert mononcqc@REDACTED
Thu Apr 3 01:22:53 CEST 2014


For cases where you have lots of requests to restriced number of
endpoints, I've written pooling on top of lhttpc, which shows up in this
fork: https://github.com/ferd/lhttpc

It's been used in production for years and will do very basic GET/POST
kinds of requests, but with efficiency.

If that one begins to be a point of contention (too many reqs per
endpoint), https://github.com/ferd/dlhttpc is its successor -- same API,
but stronger pooling mechanism.

Regards,
Fred.

On 04/03, Vladimir Ralev wrote:
> Hi all,
> 
> I've been struggling with httpc and ibrowse to do sort of long-polling REST
> requests in large numbers. Basically I have a "slow" server that responds
> in 30-60 seconds to all HTTP requests. Both httpc and ibrowse seem to
> freeze at some point no matter what settings I use - I set max sessions to
> 10000, disable pipelining, adjust timeouts tried several random configs,
> but at some point they all freeze and no longer attempt to connect and send
> new requests. Ibrowse gives the retry_later and httpc just freezes. Any
> recommendation?

> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list