In this article, I would be talking about the performance statistics when running a Micronaut Application on a JVM runtime versus running it as a native image on the Lambda.
Micronaut became quite popular for their quick startup time because of the Ahead Of Time(AOT) compilation. It provides literally all the capabilities that SpringBoot provides like Aspect-Oriented programming, Dependency injection, etc.
Now I have described how to create a Micronaut Application in my previous article “A SpringBoot Developer’s Guide to Micronaut”. …
In this article, I would show how you can achieve an incredibly quick start-up time for your java application in the order of around 90 ms.
Yes, 90 milliseconds.
Nowadays, we are all familiar with spring and spring boot to provide the best features of dependency inject, Inversion of control (IOC), Aspect Oriented Programming (AOP). But to provide these features, spring needs to do a bunch of stuff behind the scenes, such as wiring of objects, proxying objects, etc which takes some time when the application starts up.
With applications becoming cloud-native, we want quick start-up time and better memory…
This is a guide for spring application developers, who want to get started with using Micronaut. With this guide, you will get enough information to work with Micronaut framework.
Micronaut is a framework, which has gained its name for faster startup time and is usually preferred for solutions with AWS Lambda. It uses Ahead Of Time (AOT) Compilation to determine what the application needs. The result of this is an application that has a smaller memory footprint, fast start-up time, and is reflection free.
The Framework provides dependency injection, inversion of control (IOC), and Aspect-Oriented Programming (AOP) which is similar…
In this article, I am going to be talking about how we can define your event-driven architectures using the AsyncAPI definition.
A while ago, I published an article about how you can document REST APIs using Open API 3 specification. This was for synchronous APIs.
Today we are going to look at how we can describe asynchronous APIs that we create when we design event-driven architectures.
Let’s look at the various parts of an AsyncAPI specification that are most useful.
In this article, I would be talking about Java records from Java 16 release
Java record is a type of class whose sole purpose is to drive programming with immutable data. Let’s look at a simple example.
public record Data( int x, int y)
So here we have created a record with header x and y. Here x and y are referred to as components of a record.
Now, When we create a record, we get the following:-
In this article, I would be talking about my experiences with a new local Kubernetes cluster call Kind.
Recently I wanted to experiment with something on a Kubernetes cluster, and I didn’t want to spin up a new cluster on AWS and wanted something quick.
Till now, Minikube was the only thing I was using as a local Kubernetes cluster. But I start noticing performance degradation on my system as soon as I started using Minikube.
I came across another local Kubernetes cluster called Kind and I want to share my learnings about it.
Kind is a command-line tool that…
In this article, I would like to give you a jump-start tutorial to understand the basic concepts and create a workflow pipeline from scratch.
So let's get started!
Apache Airflow is an orchestration tool that helps you to programmatically create and handle task execution into a single workflow. It then handles monitoring its progress and takes care of scheduling future workflows depending on the schedule defined.
Workflows are created using python scripts, which define how your tasks are executed. They are usually defined as Directed Acyclic Graphs(DAG).
In this blog, I take a practical approach to API first design with an example using Open API 3 specification.
Firstly, I describe how I created the API definition, then how I created the server and the client code from the API definition. Then I will talk about some of the problems I faced.
As we are adopting microservice-based architectures, API first approach have been gaining some traction. There are quite many advantages to using API first approach and I will discuss a few of them.
Clear Contract Definition
With API first approach, you can create a concrete contract with which…
I was facing a problem where I wanted to insert millions of records into the database which needed to be imported from the file.
So I did some research around this and I would like to share with you what I found which helped me improve the insert records throughput by nearly 100 times.
Initially, when I was just trying to do bulk insert using spring JPA’s
saveAll method, I was getting a performance of about 185 seconds per 10,000 records. After doing the following changes below, the performance to insert 10,000 records was just in 4.3 seconds.
This article is about how you can handle AWS RDS secrets change or rotation without restarting your Spring Boot application.
I had this problem wherein I had to update my database connection whenever the database password was updated for my AWS RDS instance. This can be because of a monthly password rotation policy or may be the database credentials got compromised and you want all your running applications to keep running even when the database password are changed.
To solve this kind of a problem, AWS provides a library that will handle this updating of the database connection without even…