Code Monk

Tech forum for Java, algorithms & data-structures, Hibernate, RESTful API, Spring framework, Microservices architecture, Interview questions, Python, SDET, Machine learning, DevOps.

Troubleshooting Deadlock in Java

Carvia Tech | August 11, 2020 | 4 min read | 2 views

In this post we will describe what deadlock is, how to troubleshoot it and how to reproduce it using Java language

Read Article

ThreadLocal with examples in Java

Carvia Tech | August 11, 2020 | 4 min read | 534 views | Multithreading and Concurrency

ThreadLocal provides a mechanism of maintaining thread confinement for a given object. which allows you to associate a per-thread value with a value-holding object.

Read Article

Precision and scale for a Double in java

Carvia Tech | August 03, 2020 | 2 min read | 416 views

In this article we will learn difference between Precision and Scale and how to use BigDecimal class to round a Double value to required scale in Java

Read Article

Table backed global counter in spring hibernate

Carvia Tech | August 01, 2020 | 4 min read | 1,952 views

How to implement thread safe table backed global counter in spring hibernate

Read Article

AWS Lambda in Kotlin using Spring Cloud Function

Carvia Tech | August 01, 2020 | 5 min read | 377 views | AWS Tutorials

In this tutorial we will use Spring Cloud Functions (version 2.x) in Kotlin to create and deploy a simple AWS Lambda.

Read Article

Kotlin Coroutines with Retrofit

Carvia Tech | August 01, 2020 | 4 min read | 2,102 views

In this tutorial we will use android architecture components for making Kotlin coroutine enabled REST API calls using Retrofit in Android Application

Read Article

Spring RestTemplate Basic Authentication

Carvia Tech | July 31, 2020 | 3 min read | 2,287 views

We will configure RestTemplate with basic authentication credentials in a Spring Boot application using RestTemplateBuilder.

Read Article

N+1 problem in Hibernate & Spring Data JPA

Carvia Tech | July 31, 2020 | 4 min read | 368 views

N+1 problem is a performance issue in Object Relational Mapping that fires multiple Select Queries in database for a single select query at application layer. Hibernate provides multiple ways to identify and prevent this problem.

Read Article

Run method on Spring Boot startup

Carvia Tech | July 31, 2020 | 3 min read | 14,034 views | spring-boot

Spring Boot provides different mechanisms to run a specific method at Application Startup: PostConstruct, CommandLineRunner, ApplicationReadyEvent and ApplicationRunner

Read Article

Spring Boot Sidecar

Carvia Tech | July 31, 2020 | 6 min read | 1,937 views

In this tutorial we will integrate a non-JVM app (python Flask app in this case) into Spring Cloud seamlessly using polyglot sidecar support

Read Article

This website uses cookies to ensure you get the best experience on our website. more info