Explain asynchronous and non-blocking APIs in Node.js.

  • All Node.js library APIs are asynchronous, which means they are also non-blocking
  • A Node.js-based server never waits for an API to return data. Instead, it moves to the next API after calling it, and a notification mechanism from a Node.js event responds to the server for the previous API call

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *