RepositoryPython
celery

celery/kombu

Messaging library for Python.

3.2ksao
1.1kfork
139issue
4lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: celery

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: sqs

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: message-queue

#1 Repository của tuần

📬 Kombu — Thư viện messaging cho Python mà ai cũng cần

Messaging trong Python dễ như gọi một hàm — đó là mục tiêu của Kombu.

Kombu là thư viện messaging dành cho Python, phát triển bởi cộng đồng Celery. Mục tiêu của nó là đơn giản hoá việc xử lý message queue bằng cách cung cấp một interface cao cấp, idiomatic cho giao thức AMQP — đồng thời giải quyết các vấn đề messaging phổ biến mà lập trình viên thường gặp.

Kombu hỗ trợ nhiều loại transport thông qua hệ thống plugin: AMQP native qua py-amqp hoặc qpid-python, virtual transport cho Redis, Amazon SQS, ZooKeeper, MongoDB, Pyro, SoftLayer MQ, và cả in-memory transport cho unit testing. Thư viện tự động xử lý encoding, serialization và compression payload, với cơ chế exception handling nhất quán trên mọi transport.

✨ Điểm nổi bật

  • Pluggable transports: Hỗ trợ nhiều message broker — RabbitMQ, Redis, SQS, MongoDB, ZooKeeper, Pyro — chỉ cần đổi tên transport
  • AMQP native: Sử dụng py-amqp và qpid-python cho kết nối trực tiếp với broker AMQP
  • Virtual transports: Dễ dàng mở rộng hỗ trợ cho các broker không phải AMQP
  • In-memory transport: Phù hợp cho unit testing, không cần chạy broker thật
  • Tự động serialization: Hỗ trợ encoding, serialization và compression message payload
  • Consistent exception handling: Xử lý lỗi thống nhất trên mọi loại transport
  • Connection resilience: Tự động xử lý lỗi kết nối và channel một cách graceful
  • Compatibility layer: Hỗ trợ migrate dễ dàng từ dự án carrot
  • Fixes from amqplib: Hỗ trợ timeout và chờ sự kiện trên nhiều channel cùng lúc

💡 Vì sao đáng chú ý

Kombu là lớp trừu tượng hoá thông minh nằm giữa ứng dụng Python và hệ thống message broker. Thay vì viết code kết nối riêng cho từng broker, lập trình viên chỉ cần đổi transport string và Kombu xử lý phần còn lại. Bảng so sánh transport trong README cho thấy rõ ràng từng broker hỗ trợ những tính năng gì (Direct, Topic, Fanout, Priority, TTL), giúp lựa chọn đúng công cụ cho từng trường hợp.

Dự án đặc biệt hữu ích cho những ai đang xây dựng hệ thống distributed, cần message queue nhưng không muốn phụ thuộc chặt vào một broker duy nhất. Với Celery là framework task queue phổ biến nhất Python, Kombu chính là nền tảng messaging mà Celery dựa vào — nên bất kỳ ai dùng Celery đều đang dùng Kombu hàng ngày.


#Python #Messaging #AMQP #RabbitMQ #Celery #MessageQueue #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryC#
MassTransit/MassTransit

Distributed Application Framework for .NET

7.8k
Oct 21, 2026
RepositoryPython
Asabeneh/30-Days-Of-Python

The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw

80.0k
Sep 30, 2026
RepositoryPython
Textualize/rich

Rich is a Python library for rich text and beautiful formatting in the terminal.

58.0k
Nov 13, 2026
RepositoryPython
mher/flower

Real-time monitor and web admin for Celery distributed task queue

7.2k
Nov 19, 2026
RepositoryPython
celery/django-celery-beat

Celery Periodic Tasks backed by the Django ORM

2.0k
Nov 25, 2026
RepositoryPython
mosquito/aio-pika

AMQP 0.9 client designed for asyncio and humans.

1.5k
Nov 8, 2026
RepositoryPython
cr0hn/aiotasks

A Celery like task manager that distributes Asyncio coroutines

455
Sep 8, 2026
RepositoryPython
donnemartin/system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

379.9k
Sep 15, 2026
RepositoryPython
vinta/awesome-python

The definitive list that answers "I want to do X in Python, which tool should I use?"

338.6k
Nov 28, 2026