News for hackers. Stuff that matters.
Re:Show HN: go-nbd – A Pure Go NBD Server and Client by tptacek on Wednesday March 29, 2023 @04:53PM (#35363450)
Right, I don't want to talk down gnet, it's neat, but you're basically writing non-idiomatic libevent-style networking code --- ie, very non-idiomatic Go code --- and it seems to me like most of the perf win here is minimizing the number of goroutines you have serving blocking operations, which is not really a problem you're going to have with an NBD implementation.
Re:Show HN: go-nbd – A Pure Go NBD Server and Client by latchkey on Wednesday March 29, 2023 @05:19PM (#35363849)
I see your point. In my case it was basically a proxy concentrator. On one side, accept and hold open a huge number of connections, then maintain a single open connection on the other side. It worked really well for this situation.