dselivanov / rscalaKafka

Tiny R kafka client with rscala
10 stars 3 forks source link

support topic in producer$send? #3

Closed r2evans closed 7 years ago

r2evans commented 7 years ago

Looking at the source for RscalaKafkaProducer$send, it appears that topic is hard-coded from the instantiation. Is it possible to add topic as an argument to $send, defaulting to the original topic if not provided? (I believe it is reasonable for a single producer to be able to send to multiple topics. Please tell me if there is rationale against this behavior.)

dselivanov commented 7 years ago

Good point. No rationale for this. I will take a look (I only started to learn kafka, so some design things can be wrong).