Feb 12, 2025 · 5 min read · You can find the github repo here In this article, we will build a single-threaded TCP server from scratch using Rust. We will explore the different kernel-level system calls involved in creating a TCP server. We won't use standard libraries like net...
NDNischay and 1 more commented
Jan 11, 2025 · 5 min read · What is Node.js ? Node.js is a powerful, open-source, cross-platform runtime environment that allows you to run JavaScript on the server side. It is built on the V8 JavaScript engine (the same engine that powers Google Chrome). V8 compiles JavaScr...
Join discussion
Jan 9, 2025 · 9 min read · When I first started learning JavaScript, I spent ages feeling completely baffled by the event loop, Promises, and how callbacks tie everything together. I highly recommend Philip Robert’s JSConf EU talk regarding the JavaScript event loop. In theory...
Join discussion
Oct 28, 2024 · 5 min read · Introduction JavaScript is known as a single-threaded language, meaning it can only execute one task at a time. However, despite this limitation, JavaScript can handle multiple asynchronous operations efficiently, such as fetching data from an API or...
Join discussion
Oct 14, 2024 · 15 min read · Ever wondered how single threaded applications, like Redis, are able to handle thousands of clients concurrently (“perceived” concurrency)? The answer is “Event Loops“. In this article, we will dive deep into how event loops work & their implementati...
Join discussion
Aug 1, 2024 · 3 min read · Outline: Introduction Fundamental Concepts Thread Management and API Call Handling Single-Threaded Environment (Node.js) Multi-Threaded Environment (Java) Factors Affecting API Call Capacity Estimating API Call Capacity Conclusion Effici...
Join discussion
Jul 23, 2024 · 1 min read · JavaScript is single-threaded, it executes one command at a time in a specific order. However, it can handle asynchronous operations thanks to the event loop. The event loop is a mechanism that manages the execution of multiple pieces of code, handli...
Join discussionJun 19, 2024 · 1 min read · Before talking about the JavaScript is single-threaded or multi-threaded Language , Let us the understand about the single-threaded language and multi-threaded language Single-threaded Language :- In single threaded language the code is executed line...
Join discussion