Lamar
Lamar
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
Thank you all by the way! I'm a bit torn now about which approach to choose, I didn't have the chance to go over the links you sent. I'll see once I go back to working on this
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
No nothing like that. It's just a constraint I set myself because I wanted to learn more about Server Sent Events. In my mind it made sense because I only seem to care about communicating from server to client. I said I didn't need the bidirectional connection from WebSockets. But it seems it would be easier to just use that
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
Now I get what you meant when you mentioned the list of SSE connections, altough pro jenxpert said it's not needed. I will test it out to see how it works
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
You are right, that's why I said it's "somewhat working" I will try to replace that by sending a notification. But now I wonder if the server will push to all clients or if only one client gets the data I have only tested with 1 client open
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
Yes yes
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
Yes, it was on the server
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
I will try to report back here with anything I find worth mentioning and/or face
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
I can see data being pushed on the client, so I assume it's working
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
It's somewhat working, all I did was to create an endpoint in which there's a loop that queries the db every x seconds and I send the data to the client
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
I don't think I know what lookup means in this context, to be more precise
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
Could you please explain what you meant when you said "lookup from the event to SSE" I don't think I got that
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
Ook, I will have to go over both channels and events. Have not used any of those before
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
However this assumes I do distributed APIs
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
Thank you for explaining both cases. I will try to keep it as simple as possible, for my use case I think 1st aproach will work fine, for now I don't see any filtering being needed.
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
Was thinking about only using 1 server
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
I don't need that much for now, it's something I plan to do in my spare time, nothing serious
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
alright then, I can scratch that
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
but then I am unsure what to do once the message gets picked up by this service, how to do the fanout from the service
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
If I were to use RMQ, would it be OK to push the notifications from the Update service call, and then have a background service that listens to topic/queue
134 replies
CC#
Created by Lamar on 2/17/2025 in #help
✅ How to notify clients when an db update occurs
I will have to look up webhook notifications, I don't know much about them. I also considered a message broker, but I do not know how to consume it from client apps
134 replies