tonga

Tonga is a toolkit for building fault-tolerant, distributed, highly concurrent, event-driven applications


License
MIT
Install
pip install tonga==0.0.2

Documentation

Tonga

GitHub Kafka Documentation Status Contributor Covenant

Asyncio client for event driven app

Documentation: https://tonga.readthedocs.io

Summarize:

tonga is a client for build distributed event driven app with Apache Kafka. It is based on the aiokafka. Can be used with 0.9+ Kafka brokers

Overview:

Tonga defines components to help building an event-driven app:

  • Model events / commands / results
  • Serializer events / commands / results
  • Consume events / commands / results
  • Produce events / commands / results
  • With or without HTTP handler
  • Asyncio

The module provides some implementations:

  • Avro schema serializer
  • Kafka consumer / producer
  • Sanic HTTP request handler

Pattern:

Getting started: