Open Source Tech Hub
Open Source Tech Hub
Oct 8, 2024 · Backend Development

Eliminating Blocking Degradation in Webman/Workerman with a Coroutine Plugin

This article explains the blocking‑degradation problem in Webman/Workerman's event‑loop, analyzes why traditional solutions fall short, and introduces the webman‑coroutine plugin that adapts multiple coroutine drivers, rewrites the web server, and provides practical guidance for safe coroutine integration.

Swooleevent-loop
0 likes · 21 min read
Eliminating Blocking Degradation in Webman/Workerman with a Coroutine Plugin
MaoDou Frontend Team
MaoDou Frontend Team
Jul 14, 2018 · Frontend Development

Mastering JavaScript Event Loop: Microtasks, Macrotasks, and Async Tricks

This article thoroughly explains JavaScript's single‑threaded nature and Event Loop, detailing how synchronous and asynchronous tasks are queued as macro‑tasks or micro‑tasks, and demonstrates their behavior with code examples, diagrams, and analysis of setTimeout, setInterval, Promise and process.nextTick.

event-loopmacrotasksmicrotasks
0 likes · 11 min read
Mastering JavaScript Event Loop: Microtasks, Macrotasks, and Async Tricks