Skip to main content

Node.js Interview Guide

Node.js interview-এ JavaScript syntax-এর পাশাপাশি runtime behavior বোঝা জরুরি। Event loop কীভাবে non-blocking I/O চালায়, CPU-heavy কাজ কেন throughput কমায়, streams কীভাবে backpressure সামলায় এবং production service কীভাবে secure ও observable থাকে—এই section সেই mental model তৈরি করে।

Start with the runtime

  1. Node.js Core Concepts
  2. Node.js Fundamentals
  3. Modules and Packages
  4. Async Programming
  5. Memory Management

এই chapters শেষ করার পর আপনি event loop, task queues, asynchronous I/O, module resolution, garbage collection এবং process lifecycle ব্যাখ্যা করতে পারবেন।

Strengthen JavaScript fundamentals

এই topics Node.js-specific নয়, কিন্তু callback behavior, module state, object method এবং asynchronous bug বুঝতে সরাসরি প্রয়োজন হয়।

Build production services

  1. Express Framework
  2. Authentication and Authorization
  3. Security
  4. Performance
  5. Node.js Microservices
  6. Advanced Topics

What a strong interview answer includes

  • Mechanism: Node.js internally কী করছে
  • Workload: I/O-bound নাকি CPU-bound
  • Failure mode: timeout, memory leak, unhandled rejection বা process crash হলে কী হবে
  • Trade-off: simplicity, latency, throughput ও operational complexity
  • Evidence: কোন metric, profile বা trace দিয়ে সিদ্ধান্ত যাচাই করবেন

Suggested practice

একটি HTTP request receive হওয়া থেকে database response পাঠানো পর্যন্ত execution flow আঁকুন। কোথায় event loop কাজ করে, কোন কাজ libuv/OS-এ যায়, কোথায় backpressure বা connection limit তৈরি হতে পারে এবং graceful shutdown-এ in-flight request কীভাবে handle করবেন—এসব ব্যাখ্যা করুন।