DEV Community

Discussion on: Zero: A fast and high performance Python RPC framework for building microservices or distributed servers

Collapse
 
xtofl profile image
xtofl

Wow - that's not an easy treat. It looks quite slim. What guidelines would you suggest to choose a lightweight service like this instead of 'that other' lightweight service, gRPC?

Collapse
 
ananto30 profile image
Azizul Haque Ananto

Ah the famous question 😅
The answer is gRPC is more famous than Zero 😜

Jokes apart, gRPC has much more control with many languages support and with a huge community maintained by Google. If you use gRPC you should.

Zero is a newborn baby and it only supports Python. To be honest the power of Zero over gRPC is - Zero focus on faster delivery of a product and service. I am working on supporting Pydantic, using that the code generated client will be self sufficient, no need to design proto or anything, and these clients can be generated with just connecting to the server. Where in gRPC you will find it's really hard to know about the classes and object types and every time you need to follow the proto and generated code etc.

But it's not only the code generation or static typing war. It's just preference, to run a ZeroServer you need no other prior knowledge and it's super simple, you even don't need to know about the wsgi things. Also the protocol is different, it's zeromq over tcp. So there is no war actually, I love gRPC and I prefer it. But Zero is something that wants to have a place in the Python ecosystem for faster and easy development.

Please share your thoughts, I would like to know people's view on this and how Zero can evolve 😃