Kafka Custom Producer and Custom Consumer

Sir,
Can we have a video about spark kafka custom producer and consumer along with offset management for next run.
How to get the data if node goes down also.

Thanks