Suhail Akhtarblog.suhail.top·Feb 11, 2025Optimizing Automation Scripts: How We Reduced Execution Time from 1 Hour to 30 Seconds, a 140x ImprovementTL;DR We optimized our Pub/Sub automation script, reducing execution time from over 1 hour to less than 30 seconds using Node.js. Here’s a quick overview of the improvements: Initial Python Script: Sequential processing, took over 1 hour. Improved ...Node.js
Ayush Rajputrajputayush.hashnode.dev·Feb 9, 202517. Asynchronous Javascript - Part 2 : CallBacks , Callback hell , Promises , async/awaitCallbacks A callback function is a function passed as an argument to another function and executed later. function fetchData(callback) { setTimeout(() => { console.log("Data fetched"); callback(); }, 2000); } function proc...JavaScript
sujay kumarsujaynitrr.hashnode.dev·Feb 7, 2025promise in javascriptBefore promises, we handled asynchronous operations using callback functions, but callbacks are not a good way to handle asynchronous operations. Callbacks: Callback functions are passed as arguments to asynchronous functions(fetchData) and are exec...JavaScript
JSDev Spacejsdevblog.hashnode.dev·Feb 3, 2025Efficiently Managing Concurrent Async Tasks with a Promise PoolIn modern JavaScript applications, managing multiple asynchronous tasks efficiently is crucial for performance optimization. When dealing with a large number of async functions, running too many at once can lead to resource exhaustion, while running ...31 readspromise pool
Harshit BansalforTechStack Talestechstack-tales.hashnode.dev·Feb 1, 2025Promises in JavaScriptPromise is an another way of handling asynchronous operations in JavaScript and they are much better than Callbacks. As we studied in the previous article that callbacks have two major problems Callback Hell and Inversion of Control. Using Promises c...JavaScriptpromises
The Syntax Nodejsmaraiya.sbs·Jan 28, 2025Say Goodbye to Callback Hell: How Promises Simplify JavaScript Async CodeWorking with asynchronous tasks is a common part of JavaScript programming, especially for things like fetching data from APIs or waiting for timers. While callbacks were the original way to handle these tasks, they can quickly lead to callback hell—...JavaScriptWeb3
The Syntax Nodejsmaraiya.sbs·Jan 28, 2025Top 10 JavaScript Promise Questions Asked in InterviewsPromises in JavaScript are a crucial concept for handling asynchronous operations. Understanding them is key for developers, especially during interviews. Here are the top 10 frequently asked JavaScript Promise questions, along with their answers and...JavaScript InterviewWeb3
Indrajeetcodewords.hashnode.dev·Jan 17, 2025Understanding Callbacks, Promises, and Async/Await in JavaScriptJavaScript provides multiple ways to handle asynchronous operations. Let's delve into callbacks, Promises, and async/await with detailed explanations and examples. 1. Callbacks A callback is a function passed as an argument to another function, whic...JavaScriptcallback functions
Rishab Rajrishab2211.hashnode.dev·Jan 10, 2025Promises in JS : made simpleProblems which leads to promises concept ? Callback hell (Pyramid of doom) : A situation where multiple callback functions are nested in order to handle asynchronous operations. which leads to problem like : Code that is hard to read because of nest...JavaScript
Jayant Vermajayantverma.hashnode.dev·Jan 9, 2025Building a Custom Promise from Scratch in JavaScriptPromises are one of the most powerful features in JavaScript for handling asynchronous operations. They allow developers to write cleaner, more readable code by replacing traditional callback-based patterns with a structured approach. But have you ev...10 likespromises