3 ms·
Interesting, thank you for explaining. The lack of monitoring of goroutines is certainly different. > which if bad things have happened are probably broken.
by rdtsc 13y ago
Interesting, thank you for explaining. The lack of monitoring of goroutines is certainly different.
> which if bad things have happened are probably broken.
It reminds me of Joe Armstrong's quote about how it is hard to perform surgery on yourself. In other words having the component that is failing trying to fix itself. I guess I would have to read more about design patterns. I saw a presentation about concurrency patterns in go, but it is about very simple toy examples, I am more interested in a larger concurrent applications, handling multiple connections for example.
- alexk 13y agoI've found net/http package source code to be useful on this matter, as the package contains production-ready servers and clients implemented in Go itself.
- rdtsc 13y agoYes Erlang also has good libraries for that. My question wasn't as much about libraries as about supervision trees. Having a part of your program fail and restarted if needed. For what I understand so far that isn't possible. It would have to be done at the OS process level instead.
- MetaCosm 13y agoYeah... so far my Go stuff has had exceptional reliability, I verified I handled all error known conditions with errcheck (https://github.com/kisielk/errcheck https://github.com/kisielk/errcheck) and just generally took the slow and plodding approach of handling everything explicitly. My app handles hundreds of thousands of concurrent connections, each one often using and/or spawning 4 or more goroutines.