confluent-kafka-python icon indicating copy to clipboard operation
confluent-kafka-python copied to clipboard

Add Free-Threaded Python Support in 3.14

Open mkmoisen opened this issue 2 months ago • 5 comments

With the release of Python 3.14, free threaded support (i.e., GIL-less python) is now a sensible option.

Third party packages that use C-Extensions like confluent_kafka however need to have code change to support free-threaded mode.

Here is the documentation on how to change C-Extensions to support free threaded mode:

https://docs.python.org/3.14/howto/free-threading-extensions.html#freethreading-extensions-howto

My understanding is that if a third party application does not support free-threaded python, then applications which import these applications will revert to using the GIL. This means that users are stuck with the GIL until all third party applications have ported to free-threaded compatibility.

May we please put this on the road map for confluent_kafka?

Thank you.

mkmoisen avatar Oct 07 '25 16:10 mkmoisen