News for hackers. Stuff that matters.
Re:Building a Streaming Platform in Go for Postgres by reactordev on Monday November 06, 2023 @05:07PM (#38169750)
Because then you are consuming, or producing, you can’t do both at the same time. You are either reading from a stream of data, or you are writing it. Using goroutines to separate these allows you to do both at the same time, as soon as data is available on the channel or you receive the signal to stop.

There are no comments on this comment yet.