Java

What’s new with Process API in JAVA 9?

Reading Time: 4 minutes With the introduction of Java 9, various improvements have been made in the Process API. Process API in Java 9 version helps to manage and control operating system processes. In Java 8 and earlier versions, the API lacks some key functionality, which makes handling processes in Java a mess. The limitations of the API often force developers to resort to native code in earlier Java Continue Reading

How to handle URL Encoded Form Data in Spring REST?

Reading Time: 3 minutes Sometimes, our REST endpoint needs to consume data in the form of application/x-www-form-urlencoded or using multipart/form-data. The source of this data can probably be an HTML form. Now, the first question which should come to our mind is, what is exactly this application/x-www-form-urlencoded or using multipart/form-data and how can we let our spring application consume this. This blog will help you to find answers to Continue Reading

Reactive Streams with JAVA 9

Reading Time: 5 minutes With the introduction of Java 9, Java community has started to show its support directly towards Reactive streams, which was earlier used by leveraging third-party libraries. Please visit my earlier blog on Reactive streams to understand the basic ideologies which are working behind it like the push-pull model or backpressure. As a part of this blog, we will explore how we can leverage the same Continue Reading

User Authorization using JWT – Part 1

Reading Time: 4 minutes Around all the buzz words flying in the micro-service development area, one of the hottest is JWT (JSON Web Token). We often encounter JWT in already established services or may be asked to authenticate a User using a JWT. So if you’re new to this concept, hang in tight! In this blog, I’ll try to explain what exact use-case¬† JWT fulfills and when you can Continue Reading

Server Streaming via gRPC

Reading Time: 2 minutes In this blog, we will see how we can do Server Streaming via gRPC. In Server Streaming, the client sends only a single request and got multiple responses. Server Streaming via gRPC Server streaming RPCs where the client sends a request to the server and gets a stream to read a sequence of messages back. The client reads from the returned stream until there are Continue Reading

Unary Streaming via gRPC

Reading Time: 3 minutes If you want to get multiple responses and send multiple requests, it is the time to use gRPC Streaming concepts. You cant do streaming with REST API as REST API uses HTTP 1.1. In this blog, I will go through how you can do Unary Streaming via gRPC. Types of APIs or Streaming in gRPC gRPC supports four types of APIs to support streaming. 1. Continue Reading

Java 9: Getting started with Jshell in JAVA 9

Reading Time: 3 minutes Java Shell tool (JShell) has been introduced as a part of JAVA 9. It is a Read-Evaluate-Print Loop (REPL), which evaluates declarations, statements, and expressions as they are entered and immediately shows the results. The tool is run from the command line. In this blog, we will learn about this interactive tool that can be used for learning the Java programming language and prototyping Java Continue Reading

Still not switch to HTTP/2?

Reading Time: 4 minutes Hi folks! Your website doesn’t reload fast and takes more time to get response . Then this is perfect time to move to HTTP/2. The relatively new HTTP/2 protocol speeds up page load significantly and is widely supported by all major browsers and servers. You should be using it right now. What is HTTP? HTTP is based on the Client/Server model. Client/Server model can be explained Continue Reading