Replies: 2 comments
-
Here is the Capsule code : https://github.com/bots-garden/capsule it’s self explanatory |
Beta Was this translation helpful? Give feedback.
0 replies
-
@gedw99 do you happen to be on Discord? I am exploring some WASM related things, and chat will be faster. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently running on fly.io for sone experiments with LiteFS etc.
i am a big fan of NATS and like the Marnit approach to allow SQLite and Pocketbaae to run multi master .
So once you have 10 instances running all over the place you next want to probably leverage NATS for calls from a web or non web client into the db.
Since your using NATS anyway and nats can itself do geo load balancing it opens up sone interesting use cases of where you run you “ middle tier “ of logic / data transform etc.
For example use wasm with Wazero and nats. There are a ton of projects doing this combo.
fhe wasm files could be put into the DB and replicated by Marnot like any other data.
The other aspect of course with the Load balancing is the Auth and Authz , which Nats has already a pretty good solution, and so would automatically give you an architectural footing
m your logic layer ( the wasm ) can now leverage the CDC stream to react to changes and the security layer can also be leveraged.
It goes turtles all the way up oonin that the same WASM can be running inside your GUai ( web or not) acting as a Service worker driving the GUI. There are a few golang projects already doing this .
Finally because you now have isometric wasm ( server and client ) you have solved the SSE / PWA Delian in that the google search bot gets html from the server rendered from the wasm AND the humans get their html rendered from the WASM running as a Service worker .
the NATS layer acting as the glue / mesh in between all these parts.
non of this would be nearly as easy to leverage without the CDC event stream…
sorry about the long text but I just wanted to Lay-out what reusing NATS with golang / WASM can offer .
great work btw
Beta Was this translation helpful? Give feedback.
All reactions