[erlang-questions] Fire and Forget
Fri Apr 1 17:55:23 CEST 2016
Low complexity solution: just spawn a process which will send request
More complex solution: spawn process under supervisor. Restart
strategy "temporary" is a good fit. Or "transient" if you want to
restart failed attempts.
As for "response never happens". Do you mean that server does not
return anything ever? Not even HTTP 200 OK? Just holds up connection?
On Fri, Apr 1, 2016 at 5:18 PM, Steven Livingstone <steven@REDACTED> wrote:
> Hi all, Erlang newbie here. So, hello all :-) Now,
> I wish to do a fire and forget http post in Erlang.
> I looked at the httpc module which seems to allow synchronous and
> asynchronous calls but in the latter case i do not expect a return
> value so don't need a request id .... and not sure whether that
> behaviour influences what I want ... does it hold open a connection or
> use up resources on a response that is never going to happen etc.
> Does anyone know the best approach?
> many thanks,
> erlang-questions mailing list
More information about the erlang-questions