Exception Handling in Spring for Apache Kafka Streams – Part 1

To handle potential exceptions in applications using Spring for Apache Kafka Streams, you can configure the following settings: Configuration Handles Typical examples DESERIALIZATION_EXCEPTION_HANDLER_CLASS_CONFIG Consumer deserialization failures Invalid JSON, corrupted Avro/Protobuf, wrong Serde PROCESSING_EXCEPTION_HANDLER_CLASS_CONFIG Exceptions thrown while processing records NullPointerException, ArithmeticException, business logic exceptions in map(),… Read More

Package statement in Java

In Java, a package is a way to organize related Java classes within a namespace. It’s like the folders on your computer; instead of putting all Java classes into a single package in a specific folder, we separate them into different packages in different folders.… Read More

The main() method in a Java application

The main() method is the entry point of a standard Java application. The JVM uses the main() method to execute a Java program. Typically, we would write the complete code for the main() method as follows:

The keyword public is an access modifier, meaning… Read More