Micronaut Client-Side Load Balancing Example in Java

This post shows how to use client-side load balancing in Micronaut with Netflix Ribbon. There’ll be a client application accessing the same URI from multiple instances of another Micronaut application. Create Multiple Instances of a Micronaut Service Application To create

Java – 5 things You Cannot do with Generic Types – Limitations

Generics is one of the best things that happened to Java. Anyone who has worked with Java during its pre-JDK5 era can attest to that. For new developments, it has drastically reduced the amount of written codes and provided compile-time type checking using Generic Types. However, there are some things you cannot do with Generics Types.

Actix-Web Basic And Bearer Authentication Examples

This post has code examples for Actix-Web Basic and Bearer authentications. In a Basic authentication scheme, a client transmits credentials as user Id and password pairs in base64 format. Meanwhile, a client sends a string token in a Bearer authentication.

How to Install Rust on Windows 11

We can now install Rust on Windows a lot easier on Windows 11 (and probably in Windows 10 too) than before with the new Rust installer.  Previously, we would go through a number steps to install Rust on Windows. The

Spring Boot – Using annotations with Apache Camel

This post shows how to use Spring Boot and dependency injection with Apache Camel and have Spring add routes and start and stop CamelContext automatically. The Spring way for Apache Camel In the previous post, Spring Boot – Copy File

Create a Spring Boot Application using IntelliJ

Using Spring Boot is the fastest way to get up to speed in developing modern applications. But how do we create the initial codebase that works out of the box? There are three ways – by hand, the Spring Initialzr,

Access Embedded in-memory H2 Used in Spring Boot

When we use an embedded in-memory H2 database with Spring Boot, we can access the data via H2’s web console. If we use Spring Security, we need to exclude the /h2-console URL from the authentication process. You also need to