You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @edenhill. I'm trying to port librdkafka to OpenVOS (I read other threads and I know this OS is not supported). Anyway, I could compile it and successfully test two instances of the example rdkafka_example program as a producer and a consumer respectively using an external broker in a win Kafka installation.
According what I've understood in the FAQs, having in mind the following architecture each instance should have 2 threads (the main and the per-broker ones):
Kafka broker in an external server
Producer or Consumer separate instances conected to one sole broker
In this architecture, will it work a #define RD_TLS #2014 (comment)
or is it going to break at any point?
Thanks in advance
The text was updated successfully, but these errors were encountered:
nachopol
changed the title
Single thread producer/consumer
Thread concurrence for 1 external broker producer/consumer
Dec 29, 2018
Hi @write2jaydeep, thanks for answering.
I haven't found anything about the scope behaviour you talk about in stratadoc website (do you have the exact reference?).
Anyway, as far as I understand, there are still two non-static RD_TLS variable declaration: rd_kafka_resp_err_t RD_TLS rd_kafka_last_error_code; in rdkafka.c int RD_TLS rd_kafka_yield_thread = 0; in rdkafka_queue.c
@nachopol Defining RD_TLS to nothing will not work, any code that is marked with RD_TLS needs its thread-local-storage, or must be rewritten in a way that does not use TLS (which most likely involves changes to the internal or public API).
Hi @edenhill. I'm trying to port librdkafka to OpenVOS (I read other threads and I know this OS is not supported). Anyway, I could compile it and successfully test two instances of the example rdkafka_example program as a producer and a consumer respectively using an external broker in a win Kafka installation.
According what I've understood in the FAQs, having in mind the following architecture each instance should have 2 threads (the main and the per-broker ones):
In this architecture, will it work a #define RD_TLS #2014 (comment)
or is it going to break at any point?
Thanks in advance
The text was updated successfully, but these errors were encountered: