Java8

Kafka Connect example: Mysql to Elastic Search

Reading Time: 3 minutes Overview: Hello everyone, in this blog, we will see an example of Kafka connect in which we will take a MySQL table, stream it to a Kafka topic, and from there load it to Elasticsearch and index its content. Installation: Now first of all we will install MySQL and Elastic search to our local system. For installing simply run: The next step is to make Continue Reading

Understanding Java enums

QuickStart with OpenJDK Project Loom

Reading Time: 3 minutes In this blog post, we will talk about Java’s ambitious project Loom which solves the problem of high throughput concurrency model using Java threads abstraction. We will go through how we can set up the minimal environment to experiment with the features of the Project Loom. What is Project Loom Project Loom is speculated to be the programming model which can disrupt the architecture of Continue Reading

Intro to Spring Reactor: Part 2

Reading Time: 2 minutes The world is a stage where all of us are artists and Constant learning is the foundation of success.In order to continue your learning with something new, here were are going to learn deep into Spring Reactor. Here we will look into Advance details about Spring Reactor like Backpressure, Operation, and more. Backpressure Backpressure is when a downstream can tell an upstream to send it Continue Reading

Intro to Spring Reactor: Part 1

Reading Time: 2 minutes The world is a stage where all of us are artists and Constant learning is the foundation of success.In order to continue your learning with something new, here were are going to learn about Spring Reactor. Let’s start with the basics about what is Reactive Programming first. Reactive Programming It’s important to understand the difference between reactive programming and reactive systems. We use both these Continue Reading

A sneak peek into Java8 Stream Transformation and Terminal Operations

Reading Time: 3 minutes Stream API was introduced in Java 8. It is used to process the collections of objects. With the help of Streams and Lambda functions, we can write clean, concise and understandable code. Streams is pipeline of operations, which we can use to evaluate the data. Streams have intermediate and terminal operations which we can use as per our requirement. Here’s a list of Operations: Intermediate Operations: peek, Continue Reading

Stateful processing with Apache Beam

Reading Time: 6 minutes Overview Beam lets us process unbounded, out-of-order, global-scale data with portable high-level pipelines. Stateful processing is a new feature of the Beam model that expands the capabilities of Beam. With these new features, we can unlock newer use cases and newer efficiencies Quick Recap In Beam, a big data processing pipeline is a directed, acyclic graph of parallel operations called PTransforms processing data from PCollections. The boxes are PTransforms and the edges Continue Reading

What’s new in Java 8

Reading Time: 3 minutes Let’s have a brief look at these Java 8 features. I will provide some code snippets for better understanding the features in a simple way. Some of the important Java 8 features are; Lambda expressions Method references Functional Interfaces 1. Lambda expressions Lambda expression helps us to write our code in a functional style. These are just like functions and they accept parameters just like Continue Reading

What is Lambda Expression in java? How to Use it?

Reading Time: 3 minutes Lambda Expressions get add-in Java 8. Java lambda expressions are Java’s first step into functional programming. Its main objective is to increase the expressive power of the language. The syntax of a basic lambda expression is: The expression use as the code body for the abstract method within the paired functional interface. lambda expressions exist outside of any object’s scope. This means they are callable anywhere in Continue Reading

What are Streams API in Java 8 ? How its unique

Reading Time: 3 minutes First of all, Java 8 Streams should not be confuses with Java I/O streams. The Stream API is use to process collections of objects. Java provides a new additional package in Java 8 called java.util.stream. In stream one or more operations can be perform. The Streams operations are either intermediate or terminal. Stream provides following features: The stream does not store elements. A stream is not Continue Reading

Generating your own Javadocs for your Package

Reading Time: 4 minutes Documenting whatever work you are doing as a developer or tester is always a good idea hence we are going to learn about Generating JavaDocs for your own package. Documentation can easily describe info about which method/class/entity to use and when. Hence, a reliable documentation is a must for a developer. Just think if you are not aware of a certain language then how difficult Continue Reading

Referential Transparency in Java Programming

Reading Time: 4 minutes what is functional programming ? It is a declarative style of programming rather than imperative. The basic objective of this programming is to make code more concise, less complex, more predictable, and easy to test. Functional programming deals with certain key concepts such as pure function immutable, state, assignment-less programming etc. Imperative Vs Declarative Programming In the imperative style of coding, we define what to Continue Reading

Understanding Java enums

Java 8 Features With Examples

Reading Time: 3 minutes In this blog, we will learn about the java 8 features and why java 8 is so much popular. After java 8 Java has started supporting the functional style of programming with its Java 8 release. The basic idea of why java enables functional programming is concise the code, less complex, easy to understand, and easy to testing compare to legacy coding styles. Here are Continue Reading

Optional Class in java 8

Reading Time: 2 minutes In this blog, we will understand what is the optional class and do we really need it? When you start writing the code in any project and one thing you always care that is the Null pointer exception and we apply many checks to prevent this error and try that error Never come in our code. that’s why we want something so that we can Continue Reading