News for hackers. Stuff that matters.
Re:Go Concurrency Patterns: Pipelines and cancellation by genwin on Thursday March 13, 2014 @06:32PM (#7395600)
I use channels to single-file data to a SQLite db. Data gets pushed into channels from multiple users / locations of the web app. A single goroutine (concurrently running function) reads from the channels one channel at a time and, for each channel, writes everything in the channel to the db in a single transaction. SQLite isn't the best at concurrency. Go's channels help resolve that issue nicely.

There are no comments on this comment yet.