Author: Shivam Roy

Managing database schema with Liquibase

Reading Time: 3 minutes What is Liquibase? First, Liquibase is an open-source database schema change management tool that makes it simple for you to handle database change revisions. How Does Liquibase Work? Regardless of your database platform, changes are defined in a platform-neutral language. In essence, you maintain a running list of modifications. And, Liquibase uses its execution engine to make those modifications for you. It requires the appropriate Continue Reading

Man working at night coding and pointing on a screen with a pen

Introduction to Liquibase

Reading Time: 2 minutes Overview Liquibase allows you to specify desired database changes using SQL and several other database-independent formats such as XML, YAML, and JSON. Developers can abstract database code to make the propagation of changes to different database types much more accessible. Before you start, If you don’t have a Liquibase account, create your Liquibase Hub account first. Download and extract Liquibase Download Liquibase. Run the installer or extract the downloaded files. Open a terminal to view your new directory: Configure Continue Reading

Router Function in Spring Webflux

Reading Time: 3 minutes Overview In Spring WebFlux, router functions are used to route requests to the corresponding HandlerFunction. Typically, you don’t write router functions yourself, but use a method in the RouterFunctions handler class to create them. RouterFunctions.route() (with no parameters) gives you a fluent constructor to create a router function, while RouterFunctions.route(RequestPredicate, HandlerFunction) gives you a direct way to create a router. It is generally recommended to Continue Reading

Visualizing data - blue matrix with data, electronic, digital, abstract, dark blue, data science

Logging in Spring WebFlux

Reading Time: 2 minutes Overview: DEBUG level logging in Spring WebFlux is compact, minimal, and human-friendly. Itfocuses on high-value bits of information that are useful over and over again vs others that areapplicable only when debugging a specific issue. TRACE level logging generally follows the same principles as DEBUG (and for example also should notbe a firehose) but can be used for debugging any issue. In addition, some log Continue Reading

Getting started with Spring Webflux

Reading Time: 3 minutes Overview Hello everyone, In this blog, I am going to discuss an introduction to webflux. The original web framework included in the Spring Framework, Spring Web MVC, was purpose-built for the Servlet API and Servlet containers. The reactive-stack web framework, SpringWebFlux was added later in version 5.0. What is Spring Webflux? Spring Webflux is fully non-blocking and supports Reactive Streams back pressure. It runs on Continue Reading

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

How to use Kafka Connect to stream data

Reading Time: 2 minutes Overview: In this blog, I am going to discuss how to use Kafka Connect to stream data. In this blog, I’ll be taking an example and then elaborate on it. That example will be based on how can we stream data which is file test.tx to a destination which is also a file, test.sink.txt with the help of Kafka connect. I will be using standalone Continue Reading

Getting started with Kafka Connect / Connectors

Reading Time: 3 minutes Overview: In this blog, we will be going to deep dive in with Kafka Connect and know about some basic fundamentals of it. Apache Kafka is one of the central technologies in Undertaking Models these days. More than 60% of Fortune 500 companies are utilizing Kafka. The innovation has advanced apart over the final decade i.e. from Pub/Sub to a Total Occasion Streaming Stage. Therefore, The exceptionally begins necessity to work in an occasion-driven framework is to ingest data/events. For the same reason, Kafka Interface was involved in the Kafka Biological system in 2015. This empowers us to coordinate outside frameworks without composing a Continue Reading

Getting Started with Kotlin

Reading Time: 2 minutes Introduction: In this blog, I am going to discuss the basics of the kotlin programming language. Kotlin is a statically, typically programmed programming language developed by JetBrains. It produces world-class IDEs like IntelliJ IDEA, PhpStorm, Appcode, etc. However, It was first introduced by JetBrains in 2011 with the new JVM language. It is an object-oriented language and a “better language” than Java. This language is Continue Reading

How to create a Singleton class in Kotlin

Reading Time: 3 minutes What is Singleton Class? First of all, let us discuss what is singleton class is. We can define a singleton class in such a way that only one instance of the class can create and we can use that instance everywhere. We can use a singleton class where we need only one instance of the class like NetworkService, DatabaseService, etc. Generally, it is done because Continue Reading

Comparing Eureka vs. Consul.io

Reading Time: 2 minutes Overview: Hello everyone, let’s take an overview of this blog. In this blog, I will discuss how we can compare spring cloud gateway with eureka vs consul. Microservices is a newer architectural pattern for enterprise web service development. However, one of the greatest challenges with this sort of design is how to oversee the revelation of the web services. Moreover, based on this challenge, there are a few distinctive open-source alternatives. What is Eureka? Eureka Server is an application that holds the information Continue Reading

Dynamic Configuration of Spring Cloud Gateway Routing

Reading Time: 3 minutes In this blog, we are going to see the dynamic configuration of Spring Cloud Gateway routing. The configuration of Spring Cloud Gateway can be control by a series of “RouteDefinitionLocator” interfaces, which are as follows: By default, through the @ ConfigurationProperties mechanism of SB, Spring Cloud Gateway uses PropertiesRouteDefinitionLocator to load the configuration information of routes from the configuration file. In the previous routing configuration, Continue Reading

Spring Cloud API Gateway: Custom Predicate Factory

Reading Time: 2 minutes Overview: Hello everyone, In this blog, we will deep down into routing predicate factories. Firstly we will know about what is a routing predicate factory? In a nutshell, a Predicate in Spring Cloud Gateway is an object that tests if the given request fulfills a given condition. For each route, we can define one or more prepositions. If satisfied, we accept requests for configured backend Continue Reading