Rivermanriverman-research.hashnode.dev·Dec 4, 2024Journal:: retry 전략으로 DB 연결 장애 시 자동 복구 메커니즘 개발기(Nest.js)이 글은 풀스택 엔지니어인 제가 Nest.js에서 서버 시스템 안정성을 높이기 위해 DB 커넥션 자동 복구 메커니즘을 구현했던 과정과 관련 개념들을 다룹니다 며칠전 지구 반대편에 있는 팀원으로부터 버그 리포트를 받았다. 이후 다른 대륙의 클라이언트들로부터도 같은 문제가 발생했다는 보고가 이어졌다. 여러 리전들에서 같은 문제가 발생한 것으로 보아 서비스의 기능에 장애가 발생한 것으로 보였다. 문제의 원인은 서버와 DB 간 연결 실패에 있었다. ...Discussnestjs
Sagyam Thapablog.sagyamthapa.com.np·Nov 26, 2024Distributed Tracing with OpenTelemetry and Jaeger for Nest ApplicationIntroduction Have you ever had a bug that occurred in production and you have no idea what went wrong because your logs won’t tell you exactly what went wrong or a request that takes usually long to process. Sometimes debugging these issues without a...Discuss·249 readsOpenTelemetry
Hamidreza Mahdavipanahhamidreza.tech·Nov 26, 2024Fast and Simple NestJS App Deployment on VercelThis guide is beneficial if you're using Express adapter. For NestJS applications utilizing the Fastify adapter, these links may be helpful: https://fastify.dev/docs/latest/Guides/Serverless/#vercel https://github.com/vercel/examples/tree/main/star...Discuss·32 readsnestjs
Shaunak Deshpandeshaunak.hashnode.dev·Nov 25, 2024Real-Time Communication with Server-Sent Events (SSE) in NestJSAs developers, we're constantly seeking ways to create more dynamic and engaging user experiences. One approach to achieving this is by leveraging real-time communication between the client and server. While WebSockets are a popular choice, Server-Se...Discuss·1 likeJavaScript
Muhammad Sufiyaninnosufiyan.hashnode.dev·Nov 25, 2024Episode 9: Using Yarn Workspace Commands to Simplify Monorepo ManagementThe Problem with Changing Directories In a monorepo with multiple products and packages, you often: Jump between directories to run commands for different packages. Lose productivity managing these repetitive changes. Solution: Yarn Workspace Co...DiscussSMIT - Batch 10Nx
Muhammad Sufiyaninnosufiyan.hashnode.dev·Nov 25, 2024Episode 8: Understanding Bin Scripts and Their Use in Yarn WorkspacesWhat Are Bin Scripts? Bin scripts are executable files defined within a package that can be invoked: From other packages in the workspace. Globally when installed as a dependency. They’re commonly used for: CLIs (Command Line Interfaces), such a...DiscussSMIT - Batch 10nestjs
Muhammad Sufiyaninnosufiyan.hashnode.dev·Nov 25, 2024Episode 7:Understanding Hoisting in Yarn WorkspacesWhat Is Hoisting? Hoisting in Yarn Workspaces refers to the process of lifting dependencies from individual package directories to a shared node_modules folder at the root of the repository. This mechanism optimizes: Dependency Management: Avoids d...DiscussSMIT - Batch 10nestjs
Muhammad Sufiyaninnosufiyan.hashnode.dev·Nov 25, 2024Episode 6: Using Yarn Workspaces to Manage MonoreposWhat Are Workspaces? Workspaces are a powerful way to manage multiple packages within a single repository. They allow packages to: Interact as Dependencies: Automatically link packages together as dependencies via symlinks. Streamline Installatio...DiscussSMIT - Batch 10nestjs
Muhammad Sufiyaninnosufiyan.hashnode.dev·Nov 25, 2024Episode 5: Using Symlinks to Manage Monorepo ModulesIn the previous lesson, we explored the Node Modules Trick, renaming the packages folder to node_modules to allow Node.js to treat modules as standalone packages. In this lesson, we’ll use symlinks (symbolic links) for a more elegant and professional...DiscussSMIT - Batch 10Nx
Muhammad Sufiyaninnosufiyan.hashnode.dev·Nov 25, 2024Episode # 4 - Creating Your First Basic Monorepo: The Node Modules TrickIn this lesson, we’ll create a basic monorepo using Node.js module resolution and a clever technique we call the Node Modules Trick. This will allow us to structure and manage multiple modules in one repository effectively. Step 1: Setting Up the Pr...DiscussSMIT - Batch 10Node.js