Sorry for my lack of knowledge related to this question but: if I want to create a C application that exposes a REST API layer using Apache as web server there are 2 options (at least these 2 I have found googling)
using CGI .
implement an Apache extension i.e hello_world.so and then load in the Apache configuration
What is the main difference between them in terms of process created, overhead, lag etc?
Thanks.