C
C#8mo ago
Kiel

Real-time chat platform frameworks: SignalR, WebSockets, ???

As a project I want to task myself with to learn some new technologies, I want to develop a chat app a la Discord. I'm curious what technologies are out there that can allow clients to connect to the server and receive "events" for things like messages, etc. etc. I know of WebSockets, which are probably the most common - but I'm curious what other tools or frameworks I could utilize on the server side that can still be easily accessed by cross-platform (mobile, desktop) clients. I'm looking for backend-only systems if preferable as I will likely try to build the clients (once I get to that point) in something else entirely. I would also like to maybe do a little bit of premature overengineering and build it so that it could easily scale beyond just running it on one random computer for the entire world. I'm trying to be realistic and knowing that this is just a pet project I don't plan on trying to release it in a state to scale or compete with huge platforms, but I'd like to learn as maybe it could be something I could add to my portfolio. I have a feeling if I design it for small-scale, that upscaling it down the line will be a huge pain.
8 Replies
Denis
Denis8mo ago
You can try grpc. It should be just fine
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
Kiel
Kiel8mo ago
I did find multiple sources claiming that grpc wasn't really recommended for real-time chat applications
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
Kiel
Kiel8mo ago
I'm not...opposed to websockets, as I've never really personally had issues with them, but since I've never done anything like this before I like to try to research what my options are to see what I can try to either be 1) different or 2) better, but sometimes if it ain't broke don't fix it
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
Kiel
Kiel8mo ago
I'd like to write as much of the backend in dotnet as possible, so maybe I'll give signalr a bigger looksie, since i've heard nothing but good things about it across the board (unrelated to this even)
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View