Java

Understanding Java enums

A Guide to Method References in Java 8

Reading Time: 2 minutes In this blog, we will get to know about method references in Java, where and how to use them. What are Method References? Method References allow us to pass the name of a method where a functional interface is expected. This brings us to another question. What is a Functional Interface? Functional Interfaces are single-method interfaces that encapsulate a single behaviour. For eg. Runnable which Continue Reading

Java8 Futures: Introduction & Best Practices

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

Beginner’s Guide to GraphQL with Spring Boot

Reading Time: 4 minutes The world is a stage where all of us are artists. Constant learning is the foundation of success. So here we are going to have a tutorial on GraphQL in which we will see how to create a GraphQL server in Java. Objective We are going to query the details for a specific song from an online platform. Prerequisite Basic knowledge of:– Spring Boot– Java– Continue Reading

Resilience4j Retry with SpringBoot

Reading Time: 2 minutes Hi guys, I hope you are doing good. In this blog, we will be talking about one of the core modules of resilience4j: Retry. If you are not familiar with the resilience4j library then you can refer my last blog Bulkhead with Resilience4j. It would be a 2 minutes read. What is Retry in API calls? We use the Retry mechanism to make out the micro-services Continue Reading

Spring Beans in Java

Reading Time: 2 minutes Spring IoC container is the core of the Spring Framework.In spring-based applications, objects live inside a spring containerThe container instantiate the objects, wires them together and manages their complete life cycle from creation till destruction.These objects in the Spring IoC container are referred to as beans. What is Inversion Of Control(IoC)? IoC simply means giving control to spring container to create and instantiate the spring beans Let`s say you want to Continue Reading

Lambda Expressions: An Introduction in Java 8

Reading Time: 2 minutes Lambda expressions were one of the new features that was introduced in Java 8. They help clean up verbose code by providing a concise and local way to reduce redundancy by keeping code short and self-explanatory. In addition to saving code, Java’s lambda expressions are important in functional programming. They allow developers to write in a functional style by acting as functions without belonging to Continue Reading

Getting started with GraphQL

Reading Time: 2 minutes The world is a stage where all of us are artists. Constant learning is the foundation of success. So, here we are going to learn about a query language introduced by Facebook back in 2015, which is GraphQL. In this blog, we will cover the basics of GraphQL. Overview GraphQL is a query language(that’s what QL stands for) for your API and a server-side runtime Continue Reading

Why to use Java9 when I have Java8?

Reading Time: 3 minutes The concept of JPMS i.e. Java Platform Module System came in Java 9. Its development was first started in 2005 and finally in 2017, this concept came under the project named Jigsaw. Until Java 8, we used jar files for packaging and bundling the application, but from Java 9 onward, we will be using modules for that. Modularity is the basic rule of good software Continue Reading

Flink: Union operator on Multiple Streams

Reading Time: 3 minutes Apache Flink offers rich sources of API and operators which makes Flink application developers productive in terms of dealing with the multiple data streams. Flink provides many multi streams operations like Union, Join, and so on. In this blog, we will explore the Union operator in Flink that can combine two or more data streams together. We know in real-time we can have multiple data streams from different sources Continue Reading