gofr-dev / gofr

An opinionated Go framework for accelerated microservice development
https://gofr.dev
Apache License 2.0
1.3k stars 133 forks source link

NATS support #584

Open linux-china opened 1 month ago

linux-china commented 1 month ago

NATS is more than PubSub with lots features:

gedw99 commented 1 month ago

Would be really awesome to see nats supported.

I quite like the way gofr manages what type of system your using via the context.

Descant then eithe embed nats Jetstream , use an external NATS Jetstream or using the Syndia Cloud running NATS Jetstream in which AWS or GCP or Azure.

I tend to use Embedded for testing, and my own NATS super cluster for Production.

the nats team test their own nats system using an embedded NATS server too. It’s quicker .

—-

I am using this NAT HTTP gateway to give me an S3 system , without running S3. It uses the NATS object store and scales out multi region if your using a NATS Super Cluster. The actual files are stored in the NATS object store.

https://github.com/wpnpeiris/nats-gateway

gedw99 commented 1 month ago

Also there are examples with videos here for the many aspects of NATS

https://github.com/synadia-io/rethink_connectivity

You can send logs, traces and metrics to NATS Jetstream. This is async and can reduce the amount of sub systems you need for your telemetry as well as unifying all that data from your many mi Roderick into a global view inside nats.