Need advice about which tool to choose?Ask the StackShare community!
Hug vs Nameko: What are the differences?
Hug: New Python REST API and CLI micro-framework. Hug aims to make developing Python driven APIs as simple as possible, but no simpler. As a result, it drastically simplifies Python API development; Nameko: Python microservices framework. Python microservices framework that leverages AMQP for RPC. It supports asynchronous and synchronous events.
Hug and Nameko can be categorized as "Microframeworks (Backend)" tools.
Hug and Nameko are both open source tools. It seems that Hug with 5.84K GitHub stars and 343 forks on GitHub has more adoption than Nameko with 2.98K GitHub stars and 290 GitHub forks.
Which is the best Python framework for microservices?
We are using Nameko for building microservices in Python. The things we really like are dependency injection and the ease with which one can expose endpoints via RPC over RabbitMQ. We are planning to try a tool that helps us write polyglot microservices and nameko is not super compatible with it. Also, we are a bit worried about the not so good community support from nameko and looking for a python alternate to write microservices.
Bottle is much less bloated and fast. Its built-in templating system is one of the fastest as it compiles the templates in bytecode. Also Bottle has no depenencies, preventing dependency bloat.
Pros of Hug
- Simple4
- Self documenting2
- REST2
- Fast2
- Elegant2