Micronaut

Enabling Metrics in Micronaut: A Comprehensive Guide

Why Metrics Matter in Micronaut Metrics play a crucial role in monitoring the health, performance, and resource utilization of microservices. In a Micronaut application, metrics provide valuable information such as: Resource Utilization: Understand how your application consumes resources like CPU, memory, and threads. HTTP Request Metrics: Monitor the incoming HTTP requests, response times, and error…

Tech

How to solve “Running scripts is disabled on this system” in Windows

In the realm of Windows environments, encountering the dreaded “Running scripts is disabled on this system” message can be perplexing and frustrating. This restriction often poses a hurdle when attempting to execute scripts, especially in PowerShell. Fear not, for this blog will guide you through simple yet effective solutions to overcome this obstacle. Solution 1:…

Micronaut

Connecting with MySql Database in Micronaut

Micronaut, a powerful and lightweight framework, provides an excellent platform for building microservices. In this blog, we’ll explore the seamless integration of MySQL, a popular relational database, into a Micronaut application. This integration ensures data persistence with efficiency and simplicity. Prerequisites Before connecting to a database in Micronaut, make sure you have the following prerequisites:…

Micronaut

How to write custom queries in Micronaut

Introduction: Micronaut Data, a part of the Micronaut framework, simplifies database access in Java and Kotlin applications. While Micronaut Data offers many built-in features for CRUD operations, there are scenarios where custom queries are necessary. This blog will guide you through the process of writing custom queries in Micronaut Data. Why Custom Queries? Micronaut Data…

Leetcode

1814. Count Nice Pairs in an Array

Introduction: The problem involves identifying pairs of indices in an array that satisfy certain conditions, with a specific mathematical operation. This blog will discuss the problem, the provided solution, and break down the code for a better understanding. Problem Overview: The goal is to find the count of such nice pairs of indices. Due to…

Distributed System

Understanding Transactional Outbox Pattern

Introduction: Microservices have become the standard in software development, offering benefits such as scalability, rapid deployments, smaller codebases, and low coupling. However, there’s a common pitfall: the risk of unintentionally creating a distributed monolithic architecture, where the failure of one service can impact others. To address this, we need a robust communication strategy that ensures…

Tech

How to install lazydocker in MacOS

Docker has revolutionized the way we deploy and manage applications, but sometimes navigating through Docker commands and container status can be overwhelming. Enter LazyDocker – a terminal-based UI for Docker that simplifies the Docker experience. In this guide, we’ll walk you through the installation process of LazyDocker on your system. What is LazyDocker? LazyDocker is…

Scala

Configuring Heap Size for sbt: A Complete Guide

The Simple Build Tool (sbt) is an essential tool for building, testing, and running Scala and Java projects. To ensure that sbt performs optimally and doesn’t run into memory-related issues, it’s crucial to configure the heap size properly. In this guide, we’ll explore the steps to configure the heap size for sbt, both for macOS,…