In Apache Kafka-Spark Streaming Integration, there are two approaches to configure Spark Streaming to receive data from Kafka i.e. Kafka Spark Streaming Integration. First is by using Receivers and Kafka’s high-level API, and a second, as well as new approach, is without using Receivers. There are different programming models for both the approaches, such as performance characteristics and semantics guarantees.
Let’s study both approaches in detail.