title: Best method to create a c++ app to communicate with nginx
body: <p>I need to write a C++ interface that can read our data structure and provide the o/p based on query using http protocol. </p>
  
  <p><strong>Server Need</strong><br>
  It should be able to serve 100 clients at the same time. </p>
  
  <p><strong>Why C++</strong><br>
  All code is already written in C++. So we need to just write a http layer in C++. That's why I am choosing C++ instead of a more conventional web-programming language.</p>
  
  <p>I am thinking to use nginx to serve static files and use its proxy pass to communicate with C++. </p>
  
  <p>There are two approaches I have found:</p>
  
  <ul>
  <li><p>Write a FastCGI c++ module.</p></li>
  <li><p>Write a node.js c++ module. </p></li>
  <li><p>Please just any other suggestion if you have</p></li>
  </ul>
  
  <p>Can you please list the pros and cons for each method based on prior experience? </p>