推荐学习书目
› 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 · Sep 29, 2022 · 3953 views
    This topic created in 1505 days ago, the information mentioned may be changed or developed.

    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 replies  •  2022-09-30 09:53:46 +08:00
    chaleaochexist
    chaleaochexist
    OP
    Sep 29, 2022
    2
    @SbloodyS 这个文档 看不懂. 参数都不知道有哪些? 请问大佬是如何解决这个问题的?
    calmzhu
    calmzhu
    Sep 29, 2022❤️1
    3
    同推荐 confluent 的很棒。
    文档先看 kafaka 本身的文档,知道要哪些参数以及参数的含义后。再来看封装库的就好懂了
    SbloodyS
    SbloodyS
    Sep 30, 2022❤️1
    5
    @chaleaochexist 看这个哇
    tfull
    tfull
    Sep 30, 2022❤️1
    6
    我用 kafka-python , 历史原因。现在的话,应该会选 confluent
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1590 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 16:27 · PVG 00:27 · LAX 08:27 · JFK 11:27
    ♥ Do have faith in what you're doing.