Implementing Redis Cache in a Simple Nodejs Project

In this article, I am going to explain what Redis is, its advantages, and how to integrate it into a Nodejs project with a simple application. Implementing Redis Cache in a Simple Nodejs Project

Mastering Promises

In this article, we will understand what a promise is, what is it doing in the background, and understand its behavior.

Unit Testing Functionality: Testing setTimeout and setInterval

Recently at a client, a question came up about unit testing functionality that used setTimeout and setInterval. The issue in this particular case was that there were several additional locations where setTimeout and setInterval had been implemented ... and the complete codebase needs to run before testing.

Building Tetris in JS — The Rotation Problem and Asynchronous Functions

I’ve been learning Javascript over the last month as part of the Flatiron Software Engineering program. My love-hate relationship with Javascript has gone more towards the love side as I’ve gotten a better understanding of its quirks.

Understanding Synchronous and Asynchronous Code in JavaScript

JavaScript is a single-threaded programming language. This means it has one call stack and one memory heap. As expected, it executes code in order and must finish executing a piece of code before moving into the next.

What Is Asynchronous Programming? and How to Achieve It? (in Python)

How to achieve Asynchronous Programming in Python? Let's take an example code of synchronous programming first.

Mastering JavaScript Promises

Javascript became popular due to it’s asynchronous nature. Before promises, writing asynchronous code meant writing hugely nested callbacks (callbacks inside callbacks), this meant less intuitive code, longer debugging sessions and huge technical debt.

How to Build Real-Time Notification Service Using Server-Sent Events (SSE)

SSE definition states that it is an http standard that allows a web application to handle a unidirectional event stream and receive updates whenever the server emits data. In simple terms, it is a mechanism for unidirectional event streaming.

What is a promise in javascript?

That’s right! Promise is all about waiting for feedback. Today we will be talking what a promise is and also about the following types of promises: promise.all,promise.allSettled, promise.any, promise.race.

Writing Synchronous Code in Swift

Turn asynchronous functions into synchronous, optimise your app flow and more. When you write mobile apps in Swift, you usually have a lot of background work. Use sync function for read to block current thread, while using async function with barrier flag for write to return to current queue.

Spring Boot WebClient Cheat Sheet

WebClient is a non-blocking, reactive client to perform HTTP requests

WebSockets: Lesser Known Pattern in Data Engineering

Learn how to use the API approach to enable full duplex data transfer between client and server asynchronously using WebSockets which is an upgrade from HTTP, with a working Python code.

Asynchronicity: An Intro to Asynchrony in JavaScript

In this example, have AssistantGetMail() is an asynchronous function. In other words, it’s a function that JavaScript knows may take awhile, so while it’s running, JavaScript will go ahead and move on to the next line of code.

Managing asynchronous code in React

we want: To care only about the fulfilled state in our components, to abstract away the pending and rejected state. Here, I am going to show you how to achieve just that and how to structure asynchronous code in a modern way.

The Asynchronous Circus

JavaScript’s special concurrency model makes it suitable for a variety of purposes. Asynchronous programming is arguably node.js’ greatest strength. That is also the reason behind widespread popularity of node.js. Let us take a quick trip to the mystical land of JavaScript and try to understand how it handles asynchronous execution under the hood.

Should I Use Redux?

Starting a new application means drawing out a blueprint of what you want it to look like, and thinking about how you are going to implement whatever you are going to do before you even write any code. As a JavaScript developer, I often find myself questioning whether or not I’ll need to use Redux.

JavaScript Asynchronous Operation — Read File Directory with Callback or Promises

JavaScript is a synchronous, blocking, single threaded language. Synchronous single threaded means JavaScript waits for the task to be completed before being able to move on to the next task.

Javascript Async Operations: Make Your Web Dynamic

One of the most powerful features of javascript is its ability to execute code asynchronously. Most of the programming languages are designed in such a way that the code is executed as soon as it is found.

Order of Execution of JavaScript Promises (With Examples)

Confused about the order in which JavaScript promises execute? I was too. Working through some examples and referencing the JavaScript spec helped better my understanding — hopefully it can do the same for you.

Why Loom was introduced in Java16?

Reading Time: 2 minutes In this blog, I will explain about the advantages of Loom over the current programming callbacks.