▲ | kentonv 4 days ago | ||||||||||||||||||||||||||||||||||||||||
I said that shared state between connections is rare, but shared state within a connection is extremely common. And there are still multiple concurrent things going on within that connection context, requiring some concurrency mechanism. Locking mutexes everywhere sounds like a nightmare to me. | |||||||||||||||||||||||||||||||||||||||||
▲ | frollogaston 4 days ago | parent [-] | ||||||||||||||||||||||||||||||||||||||||
Ah I see. Well that is typically just fan-out-fan-in like "run these 4 SQL queries and RPCs in parallel and collect responses," nothing too complicated since the shared resources like the DB handle are usually thread-safe. It works out fine in Go and Java, even though I have unrelated reasons to avoid Go. | |||||||||||||||||||||||||||||||||||||||||
|