i coding web api uses mongodb database, interacts node.js , starts types of processes, can go wrong , if want api return "unknown error" message caller.
the problem modules i'm using crash , whole application dies without giving api opportunity return "unknown error" message want control without having put eval block in every database insert, process call, etc.
is there autoeval ?
if process crashing, wrong, , should why , fix it.
but failing that, work in child process, , have parent monitor , return error response.
though easier running service behind proxy server (which may doing anyway) , ensuring proxy server returns appropriate api response on proxy errors.
Comments
Post a Comment