TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Slotted Counter Pattern (2020)

49 pointsby eatonphil3 months ago

4 comments

oftenwrong3 months ago
This is similar to how java.util.concurrent.atomic.LongAdder works:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;openjdk&#x2F;jdk&#x2F;blob&#x2F;master&#x2F;src&#x2F;java.base&#x2F;share&#x2F;classes&#x2F;java&#x2F;util&#x2F;concurrent&#x2F;atomic&#x2F;LongAdder.java">https:&#x2F;&#x2F;github.com&#x2F;openjdk&#x2F;jdk&#x2F;blob&#x2F;master&#x2F;src&#x2F;java.base&#x2F;sha...</a>
评论 #42938956 未加载
评论 #42937852 未加载
hassleblad233 months ago
Are there are any other approaches for this problem? Seems like there should be.
评论 #42939213 未加载
评论 #42938277 未加载
评论 #42939374 未加载
评论 #42938839 未加载
评论 #42938083 未加载
whirlwin3 months ago
It&#x27;s an interesting approach. In similar cases has anyone got experience using a database more optimized on writes, e.g. Cassandra?
eatenfill3 months ago
phillip it&#x27;s called lock striping
评论 #42938085 未加载