[SR-Users] Does http_client module block the execution of the kamailio thread?

Alejandro Recarey alexrecarey at gmail.com
Fri Jan 22 12:36:52 CET 2021


Thank you for the reply Alex, will look into using http_async_client.
Regards!

On Thu, Jan 21, 2021 at 5:45 PM Alex Balashov <abalashov at evaristesys.com>
wrote:

> Yes, it does. And, although, there are plenty of ways to use it
> “asynchronously” without using http_async_client (e.g. mqueue and rtimer,
> or the async module wrappers), you’ll find that http_async_client, viewed
> in that light, doesn’t seem so complicated after all.
>
>> Sent from mobile, with due apologies for brevity and errors.
>
> > On Jan 21, 2021, at 11:40 AM, Alejandro Recarey <alexrecarey at gmail.com>
> wrote:
> >
> > 
> > Hi all,
> >
> > Sorry if this question is answered somewhere else but I'm not finding
> the answer in the documentation.
> >
> > Does calling http_client_query() in the http_client module block
> kamailio's thread until the http request returns? I'm asking because of
> scalability issues. My plan is to use it to get some information from my
> system, and so it will be called for every INVITE request, and I'm afraid
> of the performance considerations.
> >
> > I see there is a http_async_client module that should get around this
> but of course, it seems harder to use.
> >
> > Thanks for your help,
> >
> > Alex
> > _______________________________________________
> > Kamailio (SER) - Users Mailing List
> > sr-users at lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210122/2135a9ab/attachment.htm>


More information about the sr-users mailing list