You're welcome. ☺

On Thu, Aug 23, 2018 at 4:09 PM Santos Das <[email protected]> wrote:

> Hi,
>
> Thanks a lot. Is there any significant performance impact when it runs in
> this mode ?
>

I'm using the built-in MHD main loop through a recent released project
called Sagui Project <https://risoflora.github.io/libsagui/>. Take a look
at some benchmarks vs NodeJS/Nginx
<https://github.com/risoflora/libsagui/tree/master/examples/benchmark> (this
high-performance would not be possible without MHD library, thanks
Christian, Evgeny and all). You should test MHD in a minimal project to
check its features. Feel free to ask questions regarding it.

Has anyone compared its performance against "mongoose " ?
>

Some time ago: I tested MHD vs Mongoose vs Soup
<https://lists.gnu.org/archive/html/libmicrohttpd/2017-01/msg00022.html>.
I'm inclined to add Mongoose in my new tests
<https://github.com/risoflora/libsagui/tree/master/examples/benchmark>.


> I''m evaluating a http library for my C++ based application microservices
> .  I am evaluating libraries that can provide our C++ workers with native
> HTTP capabilities.
>
>
> I’m defining native as:
>
>    - No additional threads other than those spawned by the application
>    when it chooses to use blocking calls (entirely optional)
>    - No additional queueing
>    - Native sockets interface with full use of listen, accept, bind,
>    connect, recv, send.
>
>
Please take a look at MHD reference manual
<https://www.gnu.org/software/libmicrohttpd/manual/libmicrohttpd.html> and this
tutorial <https://www.gnu.org/software/libmicrohttpd/tutorial.html>, it
contains a lot of info and tips regarding the library features. Also, take
a look at daemon.c and connection.c files here
<https://github.com/Karlson2k/libmicrohttpd/tree/master/src/microhttpd>. ☺


> Do you think libmicrohttpd is the best choice or is there any better
> alternatives for me ?
>

I'm working a lot to release a new project for Delphi XE (Pascal and C++)
and Free Pascal
<https://github.com/silvioprog/brookframework/tree/tardigrade>, and I have
plan to support Python and Java too. I tested a lot of libraries before
(libsoup, mongoose, libuv based libraries, libevent based libraries and so
on), but MHD was the minimal, simplest, safe and performatic ANSI C
library to develop cross-platform HTTP(S) servers. So, since we are in a
similar scenario, it seems MHD is the best choice for you, please take a
time to test it. 😉


> Please advise.
>
> thanks, santos
>

--
Silvio Clécio

Reply via email to