Skip to content

Queue for multi-thread consumers. How to organize consumers for multi-thread access? #21

@polyakovmyu

Description

@polyakovmyu

Hello!
Assume that we have 1 pool of values for multiple threads and we want to get fresh value every time we ask for it.
Example of it is VTS which I used with LoadRunner. HTTP Simple Table Server has the same idea.
When I launch 2 threads I get exception: KafkaConsumer is not safe for multi-threaded access.
How should I configure consumers to get fresh values with multiple threads and is it possible?
consumer
consumer_config
logs_kafka

Sub-issues

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions