V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · 3447 views
    This topic created in 1319 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
    SbloodyS
        1
    SbloodyS  
       Sep 29, 2022
    chaleaochexist
        2
    chaleaochexist  
    OP
       Sep 29, 2022
    @SbloodyS 这个文档 看不懂. 参数都不知道有哪些? 请问大佬是如何解决这个问题的?
    calmzhu
        3
    calmzhu  
       Sep 29, 2022   ❤️ 1
    同推荐 confluent 的很棒。
    文档先看 kafaka 本身的文档,知道要哪些参数以及参数的含义后。再来看封装库的就好懂了
    SbloodyS
        5
    SbloodyS  
       Sep 30, 2022   ❤️ 1
    @chaleaochexist 看这个哇
    tfull
        6
    tfull  
       Sep 30, 2022   ❤️ 1
    我用 kafka-python , 历史原因。现在的话,应该会选 confluent
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6187 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 02:52 · PVG 10:52 · LAX 19:52 · JFK 22:52
    ♥ Do have faith in what you're doing.