---
title: "Discussion on \"Step-by-step guide of implementing scoped-like dependencies using AsyncLocalStorage with fastify | Pure DI in TypeScript Node.js\" | Hashnode"
description: "Discussion on \"Step-by-step guide of implementing scoped-like dependencies using AsyncLocalStorage with fastify | Pure DI in TypeScript Node.js\". In the previous article, I wrote about implementing Dependency Injection using the Registry approach.\nToday, I'm going to focus on the problem of how to deal with scoped-like dependencies within a static application state.\nThe Problem\nLet's say we wa..."
url: "https://hashnode.com/posts/step-by-step-guide-of-implementing-scoped-like-dependencies-using-asynclocalstorage-with-fastify/63d97efd565a6929bd800f61"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Step-by-step guide of implementing scoped-like dependencies using AsyncLocalStorage with fastify | Pure DI in TypeScript Node.js](https://blog.vady.dev/step-by-step-guide-of-implementing-scoped-like-dependencies-using-asynclocalstorage-with-fastify?utm_source=hashnode&utm_medium=feed)

In the previous article, I wrote about implementing Dependency Injection using the Registry approach. Today, I'm going to focus on the problem of how to deal with scoped-like dependencies within a static application state. The Problem Let's say we wa...

Jan 31, 2023 · 4 min read · blog.vady.dev  
Read the article

-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[Vadim Orekhov](https://hashnode.com/@vady)

@vady · NYC, US

  
[View profile](https://hashnode.com/@vady)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
