|
|
|
|
|
by jupp0r
974 days ago
|
|
> it doesn't sound they really sharing data with each other, it looks like your logic is well lineralizable and data localized, and you can't implement access to some global hashmap in that way for example. Yes, because data can have thread affinity. Data doesn't need to be shared by _all _ connections, just by a few hundred/thousand. This enables connections to be scheduled to run on the same thread so that they can share data without synchronization. > I run this(10k threads blocked by DB access) in prod and it works fine for my needs. There are lots of statements in internet about overhead, but not much benchmarks how large this overhead is. The underlying problem is old and well researched: https://en.wikipedia.org/wiki/C10k_problem |
|
data doesn't need to be shared in your specific case, not in general.
> The underlying problem is old and well researched: https://en.wikipedia.org/wiki/C10k_problem
wiki page doesn't mean it is well researched, where can I see results of overhead measurements on modern hardware?