
Kontiki, an async microservices framework in Python
Kontiki is a Python microservices framework built on AMQP (RabbitMQ) via aio-pika and asyncio . For teams familiar with Nameko , the overall philosophy will feel familiar: message-driven services on top of RabbitMQ, with RPC and events as first-class primitives. Kontiki lives in the same “family” of frameworks, while leaning into an asyncio-native implementation, a delegate-oriented service structure, and a configuration-driven runner. Kontiki focuses on keeping service code minimal and pushing infrastructure concerns into the framework. It is open source (Apache-2.0) and the code is available on GitHub: kontiki-org/kontiki . 1. Writing a service Kontiki encourages keeping the service class as an entrypoint layer and moving domain logic into delegates ( ServiceDelegate ) with setup/start/stop lifecycle hooks. from kontiki.delegate import ServiceDelegate from kontiki.messaging import Messenger , on_event , rpc class MyDelegate ( ServiceDelegate ): async def setup ( self ): # initialize
Continue reading on Dev.to Python
Opens in a new tab

