V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
chaleaochexist
V2EX  ›  Python

请问 kafka Python 客户端用哪个

  •  
  •   chaleaochexist · 2022-09-29 20:36:06 +08:00 · 2403 次点击
    这是一个创建于 546 天前的主题,其中的信息可能已经有所发展或是发生改变。

    confluent python kafka 这个的问题是 文档写的不清楚,且是.so 的封装, 看源码都看不了. 譬如

    classconfluent_kafka.Producer
    Asynchronous Kafka Producer
    
    Producer(config)
    Parameters
    config (dict) – Configuration properties. At a minimum bootstrap.servers should be set
    
    Create a new Producer instance using the provided configuration dict.
    
    

    我想看看 config 都有啥都不知道.

    kafka-python 这个最近两年没更新了 兼容性测试只到 python3.8

    没有其他选择了. 其他的都是好几年不更新的.

    仿佛进入了死胡同.

    6 条回复    2022-09-30 09:53:46 +08:00
    SbloodyS
        1
    SbloodyS  
       2022-09-29 21:11:45 +08:00
    chaleaochexist
        2
    chaleaochexist  
    OP
       2022-09-29 21:15:03 +08:00
    @SbloodyS 这个文档 看不懂. 参数都不知道有哪些? 请问大佬是如何解决这个问题的?
    calmzhu
        3
    calmzhu  
       2022-09-29 21:42:26 +08:00   ❤️ 1
    同推荐 confluent 的很棒。
    文档先看 kafaka 本身的文档,知道要哪些参数以及参数的含义后。再来看封装库的就好懂了
    SbloodyS
        5
    SbloodyS  
       2022-09-30 09:52:51 +08:00   ❤️ 1
    @chaleaochexist 看这个哇
    tfull
        6
    tfull  
       2022-09-30 09:53:46 +08:00   ❤️ 1
    我用 kafka-python , 历史原因。现在的话,应该会选 confluent
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3215 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 867ms · UTC 13:08 · PVG 21:08 · LAX 06:08 · JFK 09:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.