Java

Basic Anatomy of a Flink Program

Reading Time: 3 minutes Hi Folks! Hope you all are safe in the COVID-19 pandemic and learning new tools and tech while staying at home. I also have just started learning a very prominent Big Data framework for stream processing which is  Flink. Flink is a distributed framework and based on the streaming first principle, means it is a real streaming processing engine and implements batch processing as a special case. In Continue Reading

Bulkhead with Resilience4j

Reading Time: 3 minutes Resilience4j is a lightweight fault tolerance library, inspired by netflix Hystrix. It is kind of replacement of Hystrix because Hystrix is not in active development, instead in maintenance mode. It means they won’t review issue, merge pull requests and release new versions.

Proxy Design Pattern in JAVA #6

Reading Time: 2 minutes In this blog, we will discuss Proxy Design Pattern, its example, and how it is different from the other design patterns. But, it’s important to have an understanding of the design patterns first. You can refer here. What is a Proxy A Proxy is something that has the authority to do some activity on behalf of the original object. For example, when you are busy Continue Reading

Builder Design Pattern in Java #4

Reading Time: 2 minutes We have already discussed two of the Creational Design Pattern that is Singleton and Factory. Here, we just come up with another type of Creational Design Pattern that is Builder. What is Builder Design Pattern? Builder Design Pattern is a creational Design Pattern which is used to create the complex object. Its main purpose is to : 1) Segregate the object creation part in a separate Continue Reading

Polyglot ability for GraalVm

Running Spring boot application as Native Image

Reading Time: 6 minutes Hi all. In the last post on GraalVm we saw how polyglot functionality works when we are working with GraalVm. We saw how multiple languages can be tied together in a single application. Moreover, we saw how to pass variables and state from one programming language to another. You can visit the post here: https://blog.knoldus.com/going-polyglot-with-graalvm/. In this blog we will cover the other aspect of Continue Reading

Polyglot ability for GraalVm

Going Polyglot with GraalVm

Reading Time: 4 minutes Hi all. In this blog we will see how we can do polyglot implementations with GraalVm. The pre-requisites for this are: Understanding of GraalVm. Knowledge of features GraalVm provides. Local Setup of GraalVm. A bit of java and python(Optional). So let’s start. What’s GraalVm? GraalVm is an Open Source project from Oracle which aims to target the JVM so that many langauges can co-exist in Continue Reading

The Concept of Date and Time in Java-8

Reading Time: 3 minutes Hi guys, Let’s discuss the concept of Date and Time in Java 8. Well, it was already there then why again in java 8? That is because previously we have many issues in working. So, there are many improvements in java 8 which we will see here. Advantages over old Date-Time API First, we see how the new API is better than the older one: Continue Reading

Why Futures over Threads?

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