Administrator

Lokesh Gupta

Lokesh Gupta is a Java developer with more than 20 years of experience and the founder of HowToDoInJava, which he started in 2012. He has worked on Java and Spring applications at Hewitt Associates, Hughes Systique, Adobe and Bank of America. The site has over 1,600 tutorials on Java, Spring Boot, Hibernate, testing and TypeScript. Every example is run and verified before it is published, and the source code is on GitHub.

Website: https://howtodoinjava.com

Github: https://github.com/lokeshgupta1981/

Twitter: @HowToDoInJAVA

LinkedIn: https://www.linkedin.com/in/lokeshgupta1981/

My Articles:

Spring Boot Tests for Controller, Service and Dao Layers

Testing a Spring Boot application means checking each layer on its own, the controller, the service and the repository, and then checking all layers together. Spring Boot supports these tests with slice annotations such as @WebMvcTest and @DataJpaTest, which test one layer, and with @SpringBootTest, which starts the application. The …

Kafka Multiple Consumers: Consumer Groups and Partitions

Kafka consumers with the same group.id split the partitions of a topic, while each consumer group gets every message. Real runs with 1 to 4 consumers, rebalance logs, assignment strategies, the new KIP-848 protocol and Spring Boot @KafkaListener concurrency.

Installing Apache Kafka on Windows

Learn to install Apache Kafka on Windows 10 and execute ‘start server‘ and ‘stop server‘ scripts related to Kafka and Zookeeper. We will also verify the Kafka installation by creating a topic, producing a few messages to it and then using a Kafka consumer to read the messages. 1. Prerequisites …

Apache Kafka Tutorial

This Apache Kafka tutorial is for absolute beginners and discusses the architecture, core components and other advanced concepts.

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.