I am working on a RESTful web service which must support a high load of incoming connections. My curent design idea is to separate the server application in two ends:
- a front-end developed using Node.JS which listen to the incoming connections and call the appropriate routine of the back-end compiled as a shared library
- a back-end written in C/C++ which handles business logic, including interactions with the database.
But I have no idea if calling a shared library from Node.JS induces a latency which will make my effort in the performance of the backend useless.
What do you think of this architecture? Thanks!
EDIT: Given the answer below, what about using something like lighttpd with FastCGI compared to Node.JS?