Tagged articles
4 articles
Page 1 of 1
JavaEdge
JavaEdge
Jun 10, 2024 · Backend Development

How Nacos Implements Long Polling with AsyncContext – A Deep Dive

This article walks through Nacos's LongPollingService source code, showing how it extracts headers, calculates timeouts, detects configuration changes, enforces connection limits, and uses Servlet 3.0 AsyncContext to handle long‑polling without blocking threads.

AsyncContextNacosbackend-development
0 likes · 6 min read
How Nacos Implements Long Polling with AsyncContext – A Deep Dive
Alibaba Terminal Technology
Alibaba Terminal Technology
Mar 15, 2023 · Fundamentals

What New ECMAScript Proposals Just Reached Stage 4 and How They Change JavaScript

This article reviews the latest TC39 proposals that have advanced to Stage 4—including Change Array By Copy, Intl.NumberFormat V3, and Symbol as WeakMap Keys—explains their new immutable‑array methods, international‑number formatting APIs, weak‑map key support, and also highlights proposals moving between other stages such as Async Context and ArrayBuffer transfer.

ArrayBufferAsyncContextECMAScript
0 likes · 16 min read
What New ECMAScript Proposals Just Reached Stage 4 and How They Change JavaScript
Taobao Frontend Technology
Taobao Frontend Technology
Feb 9, 2023 · Fundamentals

How AsyncContext Enables Seamless Data Propagation Across JavaScript Async Calls

The article introduces the TC39 Async Context proposal, explains why asynchronous context is needed, shows a library implementation using run and log functions, describes the AsyncContext API with run, get, and wrap methods, and explores use cases such as trace propagation, task‑priority handling, and comparisons with thread‑local storage and Node.js AsyncLocalStorage.

AsyncContextAsyncLocalStorageJavaScript
0 likes · 18 min read
How AsyncContext Enables Seamless Data Propagation Across JavaScript Async Calls