Reading Time: 4 minutes WebAssembly, generally called wasm, is a compact, fast and portable code that can run on most browsers which makes it a technology of the future. Let us learn more about it in this blog.
Reading Time: 6 minutes While executing long computations, performance is something that’s always being the concern. Luckily, Futures come to our rescue. A Future gives you a simple way to run an algorithm concurrently. Futures are the standard mechanism for writing multithreaded code in Scala. Whenever we create a new Future operation, Scala spawns a new thread to run that Future’s code, and after completion, it executes any provided Continue Reading
Reading Time: 3 minutes In this blog I’m going to talk about Futures in Java. Futures are used when threads in a system are being blocked. This blocking is due to computations that take a long period of time to execute, the most common sources of blocking are accessing a database, accessing a cloud service and reading from a file. Blocking calls also prevents the code following the blocking Continue Reading
Reading Time: 2 minutes Hola Amigo, have you ever wondered that when we can achieve concurrency or parallelism with threads, then what on Earth are other available options doing. Let’s have a closer look. Threads: A unit of concurrency Same old theory repeated once more,“Threads are nothing but independent paths of execution. These can help in efficient use of the resources when used cautiously.” What we can achieve using Continue Reading
Reading Time: 3 minutes Hi there! Today, we are going to talk about Futures in Java. We will also look at some of the best practices related to them. What are Java Futures and why do we need them? To understand this better, firstly we must understand what is blocking and why is it bad for our software. BLOCKING – A blocking/long-running call occurs when a thread is tied Continue Reading
Reading Time: 4 minutes As you all know Rust Programming has Futures which helps to make our code Asynchronous. Rust’s Futures are analogous to Promises.This article mainly pertains to the internal working of the Future and we’ll also understand the structure of the Future like how it is defined and how it will execute when it comes into the action. Future: In a Nutshell Future is trait in Rust Continue Reading
Reading Time: 6 minutes Before moving to the future, let’s first understand what is concurrency. Concurrency: Concurrency is that we are going to perform more than one task at the same time. The rapid increase in the number of core-processor increase attracts in concurrency. Concurrency is not like the parallelism. Concurrency means multiple tasks which start, run, and complete in overlapping time periods, in no specific order. Parallelism is Continue Reading
Reading Time: 2 minutes A blog about have to use executor with completable future
Reading Time: 3 minutes This blog talks about the enhancements and improvements done in Future library as part of Java9 release.
Reading Time: 2 minutes When we want a simple way to run one or more tasks concurrently in a Scala application. Including a way to handle their results when the tasks finish then we use the scala future. In this blog, we are going to discuss Twitter Future. Twitter futures are more explicit about where computations are executed than the Scala standard library futures. This approach has several advantages over Continue Reading
Reading Time: 3 minutes “An opportunity of a lifetime.” Many businesses would not describe the COVID-19 pandemic in these words, but forward-thinking leaders are doing just that. Framing a crisis as an opportunity to reinvent their organizations has been essential for these leaders. These successful individuals will tell you that it is a growth mindset, executed with data and agility, that can help re-imagine business models, reshape operations and Continue Reading
Reading Time: 4 minutes Welcome readers, this blog is all about threading in Java. After reading this, you would be comfortable enough to program multi-threaded applications. Here, you will learn about java threads, thread pools and the concept of java future. Java Threading: The Beginning In Java, the concept of multi-threading was there from the first version itself. In Java, you can implement threading by implementing Runnable interface and Continue Reading
Reading Time: 2 minutes You all must be wondering timeouts in Futures, how is that possible? Don’t worry this is the right place to explore what do we mean by Futures with a timeout. I had encountered an issue of finding out if we can provide timeouts to futures in Scala without actually blocking them and guess what, this is possible. In this blog, we will be talking about Continue Reading