After working for several weeks with node.js, I found that there is a difference between node.js server errors and ordinary server language languages ββsuch as PHP.
A simple example: if an error on our website occurs for any reason.
in php
If the user sends some invalid data to the server and MySQL, MySQL will give an error to this specific user, and the whole application will not go down.
at Nodejs
If the user sends some invalid data to the server and MySQL, the nodejs Server node will be omitted, and therefore all users will be disconnected, and communication between users will no longer be.
This is a really big problem. in large web applications. It is not possible to handle all errors to prevent the Nodejs server from dropping, and the question is
Is there a way to handle any unknown fatal errors and exceptions for a specific result, or something like that.
source share