When to use Node JS

Node is good at following work :

  • Non-Blocking
    • After making an api call, it does not wait for the response of that API, instead it writes a call back which handles the event of getting data from API and puts it list of events that it has to execute one by one.
  • Event-Driven
    • Waits for a event to happen and executes the event
  • Data-intensive
    • When lots of data has to be handled but not processed
  • I/O intensive
    • Waiting for lots of Input and Output devices together

Node is not good for follow work :

  • Data Calculation of large amount
  • Processor Intensive
  • Blocking Operations

Example Applications :

  • WebServers
    • Because of event driven model
  • APIs fronting NO SQL DB
  • Command Line utilities
  • Build Tooling

Leave a Comment