I have C++ library that handles queries to documents and ASP.NET 5(.NET Core) web server that should open and query documents using that library.
I want to isolate C++ library from web server (so if library crashes it won't crash the server). So I'm thinking about spawning separate process for each open document and pass queries to those processes using sockets.
The question is: how and where should I handle process spawning and managing? Is it better to do on C# side, on C++, or use some middle ware?. Is there any libraries that can help me to manage processes, kill frozen processes, keep extra processes alive, and so on?