Asynchronous Pub/Sub Messaging in Java with NATS JetStream
When we build large-scale distributed clusters of applications, we utilize all our efforts to break the monoliths into small containerized workloads that communicate among themselves and share information to perform various actions. We do not spend much time designing a messaging system. Messaging is typically treated as the central nervous...
Using Async Hooks for Request Context Handling in Node.js
Async Hooks are a core module in Node.js that provides an API to track the lifetime of asynchronous resources in a Node application. An asynchronous resource can be thought of as an object that has an associated callback. Examples include, but are not limited to: Promises, Timeouts, TCPWrap, UDP...
Guide to the Future Interface in Java
In this article, we will overview the functionality of the Future interface as one of Java's concurrency constructs. We'll also look at several ways to create an asynchronous task, because a Future is just a way to represent the result of an asynchronous computation. The java.util.concurrent package was...
Converting Callbacks to Promises in Node.js
Asynchronous Tasks Using Flask, Redis, and Celery
As web applications evolve and their usage increases, the use-cases also diversify. We are now building and using websites for more complex tasks than ever before. Some of these tasks can be processed and feedback relayed to the users instantly, while others require further processing and relaying of results later....