Open in app

Sign In

Write

Sign In

Vishal Racharla
Vishal Racharla

28 Followers

Home

About

Nov 30, 2022

How to run shell script from a Java program

To achieve this we will be using apache-commons-exec library We will se how this works with a very simple example Add required dependencies implementation group: 'org.apache.commons', name: 'commons-exec', version: '1.3' 2.Now write a very simple shell script which takes one parameter 3.Let’s run this script using the apache-commons-exec library …

Shell Script

2 min read

How to run shell script from a Java program
How to run shell script from a Java program
Shell Script

2 min read


Published in Dev Genius

·Nov 27, 2022

Pause/Resume Kafka Consumer using actuator in Spring Cloud Stream

A simple example Let’s start with adding required dependencies implementation 'org.springframework.boot:spring-boot-starter-actuator' 2. Now let’s expose Spring Boot actuator endpoint for my binding configuration in application.yml management: endpoints: web: exposure: include: health,bindings 3. Now write a simple kafka producer and kafka consumer @Configuration @Slf4j public class KafkaConfiguration { Random random = new Random()…

Spring

3 min read

Pause/Resume Kafka Consumer using actuator in Spring Cloud Stream
Pause/Resume Kafka Consumer using actuator in Spring Cloud Stream
Spring

3 min read


Nov 12, 2022

Detect blocking calls using BlockHound in SpringBoot

What is BlockHound? BlockHound is a Java agent to detect blocking calls from non-blocking threads. Reference : https://github.com/reactor/BlockHound Simple example on how to configure blockhound in your spring-boot applications Let’s start with adding required dependencies Gradle implementation 'io.projectreactor.tools:blockhound:1.0.6.RELEASE' Maven <dependency> <groupId>io.projectreactor.tools</groupId> <artifactId>blockhound</artifactId> <version>$LATEST_RELEASE</version> </dependency>

Spring Boot

2 min read

Detect blocking calls using BlockHound in SpringBoot
Detect blocking calls using BlockHound in SpringBoot
Spring Boot

2 min read


Nov 8, 2022

Kafka producer and consumer with apache camel in a spring boot application

What is Apache Camel? Apache Camel is an open source framework for message-oriented middleware with a rule-based routing and mediation engine . It provides a Java object-based implementation of the Enterprise Integration Patterns using an application programming interface to configure routing and mediation rules Simple example on creating a kafka…

Camel

2 min read

Kafka producer and consumer with apache camel in a spring boot application
Kafka producer and consumer with apache camel in a spring boot application
Camel

2 min read


Nov 8, 2022

Asynchronous caching in Spring boot using Caffeine

What is Caffeine Caffeine is a high performance, near optimal caching library, it provides an in-memory cache using a Google Guava inspired API. A simple example on how to use Caffeine library for Asynchronous caching Let’s start with adding required libraries Gradle: implementation("com.github.ben-manes.caffeine:caffeine:3.1.1") Maven: <dependency> <groupId>com.github.ben-manes.caffeine</groupId> <artifactId>caffeine</artifactId> <version>3.1.1</version> </dependency>

Cache

2 min read

Asynchronous caching in Spring boot using Caffeine
Asynchronous caching in Spring boot using Caffeine
Cache

2 min read


Published in Dev Genius

·Nov 6, 2022

How to use spring boot togglz library

What is Togglz library Togglz is an implementation of the Feature Toggles pattern for Java. Feature Toggles are a very common agile development practices in the context of continuous deployment and delivery. The basic idea is to associate a toggle with each new feature you are working on. …

Toggle Switch

3 min read

How to use spring boot togglz library
How to use spring boot togglz library
Toggle Switch

3 min read

Vishal Racharla

Vishal Racharla

28 Followers

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech