Learn the difference between GroupId and ConsumerId in Apache Kafka.
Search Results for: sum
Creating a Kafka Listener Using the Consumer API
Learn how to create a Kafka listener and consume messages from a topic using Kafka’s Consumer API.
Recursively Sum the Integers in an Array
Explore two approaches to recursively summing integers in an array and analyze their performance using the JMH tool.
Manage Kafka Consumer Groups
Learn about Kafka consumer groups and their role in enhancing scalability by enabling multiple consumers to read from the same topic in parallel.
How to Subscribe a Kafka Consumer to Multiple Topics
Learn three different methods of subscribing a Kafka consumer to multiple topics.
Calculating the Sum of Two Arrays in Java
Learn how to calculate the sum of two arrays element by element in Java.
Consuming Page Entity Response From RestTemplate
Discover how to use RestTemplate to invoke a RESTful endpoint and read the response of type Page.
Read Data From the Beginning Using Kafka Consumer API
Learn how to read data from the beginning of a Kafka topic using the Kafka Consumer API.
Implementing Retry in Kafka Consumer
Learn how to implement retry logic on a Kafka topic, including blocking and non-blocking approaches.
Java Generics PECS – Producer Extends Consumer Super
Explore the usage of Java Generics when it comes to producing and consuming collections.
Generate the MD5 Checksum for a File in Java
A quick and practical guide to generating the MD5 checksum for files in Java.
Producer-Consumer Problem With Example in Java
A quick and practical guide to Producer-Consumer problem in Java.
Monitor the Consumer Lag in Apache Kafka
Learn how to find the consumer lag on a Kafka topic.
Kafka Streams vs. Kafka Consumer
Learn how Kafka Streams simplify the processing operations when retrieving messages from Kafka topics.
Using Kafka MockConsumer
Explore the MockConsumer, one of Kafka’s Consumer implementations
Checksums in Java
Learn how to create checksums in Java
Spring Boot Consuming and Producing JSON
Learn how to consume and produce JSON content in a typical CRUD REST service developed with a Spring Boot.
Summing Numbers with Java Streams
A quick and practical guide to summing numbers with Java Stream API.
Find All Pairs of Numbers in an Array That Add Up to a Given Sum in Java
A quick look at several algorithms for finding pairs of numbers in an array that add up to a given sum in Java using traditional for loops and the Java 8 Stream API.
Find Sum and Average in a Java Array
In this quick tutorial, we’ll cover how we can calculate sum & average in an array using both Java standard loops and the Stream API.