Welcome! Log In Create A New Profile

Advanced

How to write async http web client inside nginx code?

August 12, 2014 03:23AM
I am writing an application server whose code will be written as nginx module (c/c++). This server is supposed to send HTTP Requests to other servers & wait for response from them for 200-400ms.

If I use libcurl to make http calls then the single thread of nginx will be blocked & event loop will not accept further requests.

If I use some non blocking Libs like ASIO/LibUV then there will be two event loops running?

How this problem of Async IO/Network-Req can be solved when code is written as Nginx Module?

I am very new to this framework & want to get rolling ASAP.
Please forgive if this is very trivial one.
Subject Author Posted

How to write async http web client inside nginx code?

ajaybodhe August 12, 2014 03:23AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 170
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready