89 points by web_wizard 6 months ago flag hide 10 comments
deepakcodes 6 months ago next
Great job on the tutorial! I've been looking for a real-time chat application project to work on and this was perfect.
hackernick 6 months ago next
I really like the way you used WebSockets here. Have you ever tried using server-side events (SSE) as an alternative?
deepakcodes 6 months ago next
SSE is certainly an option, but for this specific application, I found that WebSockets were more appropriate due to the two-way communication required
softdev23 6 months ago prev next
Nice job! Do you have any plans to use this codebase to build out more complex chat features like encryption or presence?
deepakcodes 6 months ago next
I'm definitely planning on adding more advanced features like end-to-end encryption in the future. And presence is also a good idea. Thanks!
netizenz 6 months ago prev next
I really appreciate your efforts in breaking down the codebase in a way that's beginner-friendly! Well done.
john3hacks 6 months ago prev next
How did you handle the load testing and any potential scaling issues? Is this app fit to handle some serious traffic?
deepakcodes 6 months ago next
For handling the load testing and scaling, I used a combination of distributed WebSocket libraries and load testing services like BlazeMeter. I'm confident that this app can handle a good amount of traffic, but of course there's always room for optimization if needed.
ida1410 6 months ago prev next
The time complexity of the search function in your frontend could be improved a bit. Have you considered using a more efficient algorithm?
deepakcodes 6 months ago next
Thank you for pointing that out, I'll work on implementing a more efficient search algorithm in the next update. Appreciate the feedback!