News for hackers. Stuff that matters.
Re:Ask HN: How hard is it to build a B2C chat? by moomoo11 on Wednesday June 05, 2024 @02:09PM (#40588308)
I’ve done this before as a swe. We used Go and our chat system had auth, file sharing, 1:1 and group messaging, and other features.

It was honestly not that hard to code, maybe 4-5k loc including all the type definitions. Took around two weeks to make after spending a week or two learning and doing PoCs. It ran on a dedicated instance and can handle like 500k concurrent conversations.

Re:Ask HN: How hard is it to build a B2C chat? by edweis on Wednesday June 05, 2024 @03:56PM (#40589762)
Amazing. That’s the perfect scenario for us.

Did you choose go for its coroutine or because it’s your stack language ?

Re:Ask HN: How hard is it to build a B2C chat? by moomoo11 on Wednesday June 05, 2024 @04:32PM (#40590228)
Great. I used it because I prefer Go for all my backend tasks. Great performance, go routines and std library are awesome.
Re:Ask HN: How hard is it to build a B2C chat? by codegeek on Wednesday June 05, 2024 @03:45PM (#40589629)
Curious. Did you use some type of websockets ?
Re:Ask HN: How hard is it to build a B2C chat? by moomoo11 on Wednesday June 05, 2024 @04:32PM (#40590229)
Yes. Sockets to push, http post to create message tho or upload stuff.