/Asynchronous_travel_around_Node.js

Event loop tasks, async debugging, baseline performance(libuv), worker threads, workepools, multiprocessing(clustering), semaphores, mutexes, atomics

Primary LanguageTypeScript

Useful content

Video links:

  1. Event loop visualization
  2. Sequential vs concurrent vs parallel
  3. Call Stack, Callback Queue, and Event Loop
  4. Non-blocking I/O and how Node uses it, in friendly terms: blocking vs async IO, CPU vs IO
  5. Testing For Async Functions In NodeJS
  6. Асинхронное программирование в JS и Node.js
  7. Параллельное программирование в JS и Node.js

Article links:

  1. Non blocking event loop technique
  2. Event loop animated
  3. Next tick and promises queues
  4. Event loop phases
  5. Promise execution tracking
  6. How event loop workds
  7. The Node.js Event Loop, Timers, and process.nextTick()
  8. Don't Block the Event Loop (or the Worker Pool)
  9. Benchmarking Node.js Worker Threads
  10. Inter-processing communication
  11. Parallel programming

Clone and install dependencies

git clone https://github.com/Lormida/Asynchronous_travel_around_Node.js.git \
&& cd Asynchronous_travel_around_Node.js \
&& pnpm i

Run file locally

  1. Put needed code (function or module) in main.ts file
  2. Then either use:
npm run build:watch && npm run start

or

npm run dev