Friday, April 26, 2024
HomeGolangPublish modifications. Subscribe on modifications. Tips on how to suppose? - Technical...

Publish modifications. Subscribe on modifications. Tips on how to suppose? – Technical Dialogue


I’ve learn many articles and watched many tutorial movies, however the frequent floor for many of the materials is to Publish modifications to ALL customers. Not Subscribing and get data what issues simply the person who’s logged in.

The opposite frequent floor is Websockets protocol. There appears to be many different methods to pores and skin this cat (Mark Twain) and I’ve some doubt which one to selected.

What I’m trying to find is a approach for the person to login and connect with a server (Websocket server?) and say one thing like “Hey, I’m Joe, please hold me up to date on MY stuff”.

I’ve managed to arrange a websocket server, however I solely will get extra confused the way to proceed. Tips on how to suppose? The closest I’ve discovered is that this and discovered additionally this. However that is above my pay grade. I do perceive nothing.

On this stage I’m principally thinking about “the way to suppose”? No language particular.

Any enter or path is welcome!

Did you look into utilizing current messaging methods like NATS?

By no means heard of it. What’s the huge distinction evaluating to Gorilla/Websocket?

Do I perceive this right which you can mimic “rooms” in Socket.io this manner? ClientID = “room”?

sc, err := stan.Join(clusterID, clientID, stan.NatsURL(url),

And the way do I get “Joes stuff”? Ship a question to Postgresql? As soon as or each 5 minutes?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments