Home » Java » Enterprise Java

Enterprise Java

Complete Guide To Spring Testing

java-interview-questions-answers

Software testing is a non-negotiable aspect of the software development life cycle. Setting up and moving on with software testing might be a tedious task. You or your team may feel stuck devising a testing strategy or picking up a testing framework. However, the major roadblocks are either related to methodology or framework.This article revolves around how to perform testing of ...

Read More »

Insane AWS Lambda Speed Up

java-interview-questions-answers

What makes this post annoying is that we’ve suffered from a slow Lambda cold start for a very long time, and the solution was literally a few seconds’ work. I’ve written before about reducing bloat in Lambdas, especially the MySQL driver. However, the JVM is still quite slow to start. I’ve learned to package AWS Lambdas using ZIP, rather than ...

Read More »

Which is better: A monolithic Kafka cluster vs many?

java-interview-questions-answers

Apache Kafka is designed for performance and large volumes of data. Kafka’s append-only log format, sequential I/O access, and zero copying all support high throughput with low latency. Its partition-based data distribution lets it scale horizontally to hundreds of thousands of partitions. Because of these capabilities, it can be tempting to use a single monolithic Kafka cluster for all of ...

Read More »

How to Reduce Cloud Cost by 99% for EDA Kafka Applications

java-interview-questions-answers

While the cloud offers great convenience and flexibility, the operational cost for applications deployed in the cloud can sometimes be significant. This article shows a way to substantially reduce operating costs in latency-sensitive Event-Driven Architecture (EDA) Java applications by migrating from Kafka to Chronicle Queue open-source, a more resource-efficient and lower-latency queue implementation. What is EDA? An EDA application is ...

Read More »

HANDLING CONFIGURATIONS IN SPRING BOOT

java-interview-questions-answers

I am currently getting back to coding in Java + Spring after about 8 years. In the last 8 years, the time I spent on coding has gone significantly as I am now into leadership roles that take me away from writing code. Having said that, I need to understand some level of coding, especially in the Java world, as ...

Read More »

Guide To TestNG Assertions in Selenium Based Test Automation

We all know that testing is a major part of SDLC which can be performed either manually or in an automated manner. No matter which testing type we adopt, it is important to know where exactly we are getting application blockers while testing. Knowing application blockers becomes a bit easy while testing an application manually as a human touch is ...

Read More »

Calculations in Quarkus Qute using AtomicInteger

java-interview-questions-answers

Quarkus’ Qute Templating Engine is very handy for creating server-side rendered pages. Besides the regular loops and control structures, there’s also a possibility to set and update variables, at least with a small trick. In the following, we’ll see how to do some arithmetic calculations using Java’s AtomicInteger. Usually, you can invoke methods of objects that are passed to Qute, ...

Read More »

Google Cloud Java Client – ApiFuture to Reactive types

java-interview-questions-answers

 Google Cloud Java Client libraries use a ApiFuture type to represent the result of an API call. The calls are asynchronous and the ApiFuture type represents the result once the call is completed. If you have used Reactive stream based libraries like Project Reactor, a big benefit of using the Reactive types like Mono and Flux is that they provide ...

Read More »

Release a Gradle Project Using GitLab CI/CD Pipeline

I’ll show you how to configure Gradle build for a Java/Scala project and integrate it with GitLab CI/CD so that it can be automatically released and published to a Maven repository. The example uses Axion release Gradle plugin to manage version number using git tags and Maven Publish Gradle plugin to upload artifacts to a Maven (Nexus) repository. As an ...

Read More »