pubkey / rxdb

A fast, local first, reactive Database for JavaScript Applications https://rxdb.info/
https://rxdb.info/
Apache License 2.0
21.17k stars 1.04k forks source link

nats example #4774

Closed gedw99 closed 1 year ago

gedw99 commented 1 year ago

hey

nats is alpha / beta but good to make an example.

we can also add README for setting up NATS jetstream and also securing it with nsc.

https://github.com/nats-io/nsc

https://nats-io.github.io/nsc/

then connect using context on nats cli.


then work out how to map jwts ( from any authority ) to nats jwt


then on server validate data using json schema, etc then run the example

pubkey commented 1 year ago

Related: https://github.com/ConnectEverything/nats-by-example/issues/112

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed soon. If you still have a problem, make a PR with a test case or to prove that you have tried to fix the problem.

pubkey commented 1 year ago

Hey. So I looked more into this and I think at this point in time, NATS is just not a good solution for server-client replication, because there is not validation etc on the nats side. Maybe https://github.com/ConnectEverything/nats-by-example/issues/112 will clear up some things.

I am closing this because in the near future I am not planning to add any more NATS stuff by myself, PR is welcomed.

gedw99 commented 5 months ago

Hey @pubkey

Feeding the reactive db from nats would be easy. Nats on server I mean.

don’t know if that’s useful though ?

nickchomey commented 5 months ago

I'm also very interested in something like this - using nats' built in permissions/auth stuff to directly sync rxdb in the browser with a nats server in the backend, without any nodejs rxdb on the server