Skip to content

Don't rely on setting core.async dispatch thread pool size to 1 #2

@jeff303

Description

@jeff303

Currently, we are setting the JVM property -Dclojure.core.async.pool-size=1 in order to ensure that core.async only uses one thread to ensure that no more than one thread accesses the underlying KafkaConsumer. This is to prevent the dreaded error that results from multithreaded access to the consumer.

This is obviously a total hack. It would be better to have some other mechanism to ensure that only a single thread ever accesses the KafkaConsumer, even when handling multiple CLI requests in rapid succession. Ideally, it won't require changing much core.async code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions