zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
29.41k stars 3.97k forks source link

Add NATS as a store to allow zeromicro to use Redis or Nats #4331

Closed gedw99 closed 3 months ago

gedw99 commented 3 months ago

Can anyone advise me how I can add NATS, so that developers can use Redis or NATS ?

I know how to do this with NATS, but it might need the team to support it as it would require a PR.

Of course some developers would prefer Redis , so it would be to be a config.

With Nats, zeromicro can run on any cloud ( or on premise ) in multi master mode. No need for anything else for a global cloud. This is because of the way NATS works in terms of distributing the messages. Its a bit much to go into here, but if you know Nats, you can appreciate what I mean.

https://github.com/yakuter/redis-vs-nats Is useful to see the performance differences. There are none and with nats in process Nats would be much faster too.

kevwan commented 3 months ago

NATS is not planned to be built into go-zero.

gedw99 commented 3 months ago

Ok thanks for letting me know.