Author: kunal sethi

Making HTTP calls just got easier in Java11!

Reading Time: 3 minutes Today, we will gonna discuss Http/2 client which actually came in Java9, but in Java9 it was part of incubator module. In Java11, a new module is assigned to this special functionality which is Now, developers don’t need to go for any third party library or API for async HTTP calls or for easy access callbacks method to get HTTP response after calls. In this discussion, Continue Reading

Welcome To The Jshell World !!

Reading Time: 4 minutes Jshell is a command line interface to evaluate the java code snippets. Normally, it is called REPL(Read Evaluate Print Loop). Jshell came in Java9. Jshell gives you a place where you can experiment first if it works then use that code for your work. It is an extremely good tool for prototyping and for those who are especially new to Java. The main thing that we Continue Reading

Need Of Value Classes With Example

Reading Time: 3 minutes What Value classes is? Value classes are a mechanism in Scala to avoid allocating runtime objects. This is accomplished through the definition of new AnyVal subclasses. The following shows a very minimal value class definition: case class UserId(id: Int) extends AnyVal As you can see in the above section,  For a class to be a value class, it must have exactly one parameter and it must have Continue Reading

MongoDB vs RDBMS and it’s Advantages

Reading Time: 5 minutes In this blog, I will introduce you with the MongoDB and will draw a comparison with RDBMS and highlight its advantages over the later. MongoDB is a No SQL database.  It is an open-source, cross-platform, document-oriented database written in C++. MongoDB is developed by the company named 10gen. They define MongoDB as: “Mongo DB is scalable, open source, high performance, document-oriented database.” Why MongoDB? In this section, we will Continue Reading

What is JPMS: Java 9 Improvements-2

Reading Time: 3 minutes The Java Platform Module System (JPMS) is the big new feature of Java 9. Java developers took a long time to develop this JPMS concept because the development of this concept was started in 2005 and in 2017 it came as a Java 9‘s new feature. As a part of jigsaw project, this module programming came in Java 9. We will cover here mainly basic Continue Reading

Java 9 Improvements-1

Reading Time: 3 minutes There are a couple of improvements in Java 9. We will cover it one by one with the examples of each. 1.) Interface private methods: In Java 9, we can create private methods in interfaces. The use case is very simple: similar to classes where you put the repetitive code in a private method and reuse that in other methods, you can simply create one private helper method in Continue Reading

Java: Try With Resources

Reading Time: 2 minutes Try with resources is a special type of try statement where we can declare more than one resources within a single try statement. This feature came in Java 7. But it has some limitation with itself that overcomes in Java 9. We will discuss this limitation through the examples. Now, Firstly we have to know what is resource actually, A resource is an object that must be closed Continue Reading

UDTs In Cassandra – Simplified!!

Reading Time: 4 minutes In most programming languages viz. Scala or Java we can play with object constructs i.e. we can create our own classes and create instances out of it. A similar construct is also provided by Cassandra and that is known as UDT which stands for User Defined Type. User-defined types (UDTs) can attach multiple data fields, each named and typed, to a single column. The fields Continue Reading

Monolithic v/s Microservices

Reading Time: 3 minutes Monolithic architecture :-  A monolithic architecture is the traditional unified model for the design of a software program. The term monolithic is not new and is borrowed from the Unix world. In Unix, most of the commands exist as a standalone program whose functionality is not dependent on any other program. In simple words, monolithic meaning is formed of a single large block of stone Continue Reading

Java 8 Stream : Need with examples and Limitations

Reading Time: 4 minutes Before starting with java 8 stream firstly look at this example that will illustrates the need of java 8 stream and the power of stream as well. private static int sumIterator(List list) { Iterator it = list.iterator(); int sum = 0; while (it.hasNext()) { int num =; if (num > 10) { sum += num; } } return sum; } There are some issues Continue Reading

Key points to build an Angular application

Reading Time: 4 minutes This Blog is about Angular and why developers should choose angular to build an application. And we will also discuss the difference between its current version and previous versions. What Angular is : Angular is the perfect choice for Single Page Application(SPAs). AngularJS takes another approach. AngularJS is a structural framework for dynamic web apps. It tries to make something as small as possible the Continue Reading

REST-APIs Implementation tool: Finatra

Reading Time: 3 minutes Finatra is an open-source project by Twitter that can be used to build REST APIs in Scala programming language. Finatra builds on top of Twitter’s Scala stack — twitter-server, finagle, and twitter-util. Twitter-server   defines a template from which servers at Twitter are built. It provides common application components such as an administrative HTTP server, tracing, stats, etc. These features are wired in correctly for Continue Reading