Технічна інженерія (Jun 2023)
Practical examples of using AsyncLocalStorage in NodeJS corporate web applications
Abstract
Based on the results of a study of the popularity of programming languages conducted by the DOU community (dou.ua in the overall rating for 2022, the JavaScript programming language took the first place (18,8 %), and the TypeScript language – the sixth (10,4 %). If we consider the popularity of languages in the context of backend development, TypeScript took the seventh place (3,3 %), JavaScript – the eighth (3 %) [1]. Since these languages allow you to develop both the backend and frontend parts of an application, the popularity of these languages and the number of applications written in them is growing. The main environment for executing backend code in these languages is the NodeJS platform [2]. The NodeJS environment is actively developing and supplemented with new modules. The NodeJS module «async_hooks» was introduced in Version 16. Today it has the «Experimental» status. But one of its parts, namely «Asynchronous context tracking», has become more widely used, has been placed in a separate section of the documentation and has the status «Stable». Article that provides practical usage examples AsyncLocalStorage, will be a valuable resource for developers and researchers who want to improve their skills in NodeJS and use it effectively to develop enterprise web applications.
Keywords