Micronaut

Harnessing the Power of HTTP Client Interceptors in Micronaut

In the dynamic landscape of modern web development, the ability to manage HTTP requests and responses is paramount. Imagine if you could not only manage but also enhance these interactions, injecting versatility, security, and performance optimizations effortlessly. Enter HTTP client interceptors in the world of Micronaut—a game-changing feature that takes your HTTP client capabilities to…

Micronaut

Configuring Http Client timeout in Micronaut

In a world where applications rely heavily on communicating with external services and APIs, managing timeouts for your HTTP requests becomes crucial. Micronaut, a modern and lightweight framework, empowers developers to seamlessly configure and control HTTP client timeouts. In this blog, we’ll explore how to configure HTTP client timeouts in Micronaut and ensure smooth interactions…

Micronaut

Mastering Global Exception Handling in Micronaut

In the dynamic landscape of modern software development, creating applications that are robust, resilient, and user-friendly is paramount. Exception handling stands as a critical pillar in achieving these goals, ensuring that unexpected errors and anomalies are managed gracefully. we will delve into the intricacies of Micronaut framework, exploring how to effectively handle exceptions at a…

ruby

Difference Between devise and devise_token_auth

The devise gem and the devise_token_auth gem are both authentication solutions for Ruby on Rails applications, but they serve different purposes. Here’s a brief explanation of the difference between devise and devise_token_auth: Devise: Devise is a popular authentication solution for Ruby on Rails applications. It provides a comprehensive set of features for user authentication, including…

Tech

Running API in loop using Postman Runner

Postman is a popular API development tool that allows developers to design, test, and document APIs with ease. It provides a user-friendly interface that enables developers to make requests to APIs, examine responses, and debug issues. With Postman, developers can easily create requests, add headers, and manage complex authentication protocols. Postman also provides powerful testing…

ruby

Drawbacks of Active Record

Active Record is a pattern used in software engineering that represents the database in an object-oriented manner. In other words, it’s a way to use objects to interact with a database instead of writing SQL queries directly. In Ruby on Rails, Active Record is the default ORM (Object-Relational Mapping) that allows developers to define database…

Tech

TIL – Native modifier in Java

While going through multithreading in java you must have came across this function “Thread.yield This function is special for me because the definition of the function is So let’s go in detail about the native modifier In Java, the native modifier is used to indicate that a method is implemented in a platform-specific manner, typically…

ruby

Ruby on Rails object lifecycle and callbacks

In ROR, the lifecycle of an object is attached to the database of the application. Objects are created in memory first then later stored in the database. An object have following lifecycle Creation Validation Save Update Deletion These lifecycle have callbacks attached to each of them by which we can inject our custom logic. Creation…

Tech

How to make a class Immutable in java

Making a class immutable means that its state cannot be changed once it’s created. In other words, all the fields of the class are set at the time of instantiation and cannot be modified afterward. This can be achieved by using the following techniques: Declaring all fields as final: This ensures that the fields cannot…