Skip to content

Instantly share code, notes, and snippets.

View nsuthison's full-sized avatar
🤔

Natechawin Suthison nsuthison

🤔
  • Ava Advisor
  • Bangkok
View GitHub Profile
@nsuthison
nsuthison / Consumer.scala
Last active February 24, 2020 17:59 — forked from ElisaBaum/Consumer.scala
Kafka Producer/Consumer Example in Scala (Revision to update deprecate/outdate kafka/scala version)
import java.util.Properties
import java.time.Duration
import scala.jdk.CollectionConverters._
import org.apache.kafka.clients.consumer.{
ConsumerConfig,
ConsumerRecords,
KafkaConsumer
}
import org.apache.kafka.common.serialization.StringDeserializer