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…