Skip to content

Switching from Redis to embedded NATS for pub/sub so we can scale out. #57

Open

Description

@joeblew999

Switching from Redis to embedded NATS for pub/sub would make things way simpler.

I have benchmarks when using nats core , that show it bearing Redis for simple things like how this works.

Cant find the benchmark now of course :) will see if I can later .

It’s also possible to run nats in process . Just a single config change does this . It’s just an opt : opts.DontListen=true

Can then make multi region using https://docs.nats.io/running-a-nats-service/configuration/gateways

So it’s highly flexible ..

Activity

  1. changed the title [-]Switching from Redis to embedded NATS for pub/sub[/-] [+]Switching from Redis to embedded NATS for pub/sub so we can scale out.[/+] on May 5, 2025
  2. joeblew999 commented on May 6, 2025

    @joeblew999
    Author

    This bench is old

    https://github.com/yakuter/redis-vs-nats

    Results at bottom of readme :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions