Repository navigation
|
Hello! It looks as though there was an initiative to add python support for kafka parallel consumers, as shown in the following PR and PyPi package. #443 I was wondering if this would ever be revisited or if there are any other known approaches for writing safe parallel consumers in python. The only other approach I've read about is having a python API called from java code using the parallel-consumers library, or using some other sort of hybrid approach with something like Jython or JPype or the JNI. (Addressed in this closed discussion a little bit: #754) |
Replies: 2 comments
|
There are no plans to revisit Python integration at this time. |
|
acooke84 - it is being revisited, on the maintained fork, and in a different shape from That PR (#443) reimplemented the engine in Python; its branch is preserved in the fork's archive, and the approach was not continued. What the fork is building instead keeps one engine and gives Python two ways to reach it: a sidecar your Python process talks to over a frozen gRPC contract, and an in-process path where the engine runs inside the Python interpreter as a GraalVM shared library, with no gRPC and no JVM install. Both are on open pull requests, not in a release - the wire contract (astubbs#383), the sidecar process (astubbs#384), the conformance suite every client must pass (astubbs#387), the per-language clients including Python (astubbs#390), and the in-process Go, Python and C path (astubbs#340). The tracking issue is astubbs#242, this tracker's #154; the "What comes next" section of v0.6.0.0 lists it among the open pull requests that follow the release. Until then, the approaches you listed are the honest state of the art - a Java service in front of a Python one, or a bridge like PemJa - and a comment on astubbs#242 saying Python is your case is what decides which client gets finished first. The coordinates changed with the fork - on Maven Central it is now: <dependency>
<groupId>bz.stub.parallelconsumer</groupId>
<artifactId>parallel-consumer-core</artifactId>
<version>0.6.0.0</version>
</dependency>( find . -name '*.java' -exec sed -i 's/io\.confluent\.parallelconsumer/bz.stub.parallelconsumer/g' {} + |
There are no plans to revisit Python integration at this time.
I don't personally think we would block development in that direction if there is community submissions - but it is not something that we plan to work on in foreseeable future.