Month: August 2023

Unit, Integration, & Performance Testing

Unit Testing •Unit testing means testing individual modules of an application in isolation (without any interaction with dependencies) to confirm that the code is doing things right. This type of testing is executed by the developers Annotations Jacaco TestDoubles @Mock, @Spy, @Stub, & @InjectMocks and @Captor Mock Spy A spy is kind of a hybrid between …

Unit, Integration, & Performance Testing Read More »

SpringBoot JPA, H2 & Liquibase

JPA As a specification, the Jakarta Persistence API (formerly Java Persistence API) is concerned with persistence, which loosely means any mechanism by which Java objects outlive the application process that created them. The JPA specification lets you define which objects should be persisted, and how they are persisted in your Java applications. while JPA was originally intended for use with relational databases, …

SpringBoot JPA, H2 & Liquibase Read More »

Multi-Threading In Java

Performance makes or breaks an application and in this Digital age of short attention spans, companies are looking for high-performance applications -Multithreading is a powerful weapon to achieve this target. What is Multithreading We have all heard the phrase Divide and conquer, well Multithreading is basically doing the same, by dividing a task into multiple …

Multi-Threading In Java Read More »

Different Caching Strategies in Java Application

Request Scoped Caching Request Scoped Caching allows us to cache the object for the lifetime of the request, to implement this we will be using Caffeine Cache, as it is one of the high-performance Cache in Java. Implementation Steps Step1: Add Dependencies Step2: Configuration Step3: Cache Objects The Object is returned from Request Cache based …

Different Caching Strategies in Java Application Read More »

error: Content is protected !!
Scroll to Top