We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
拆分,横向扩容
直接使用有状态服务,解决分布锁的问题,提升IO能力
锁的范围越小越好
锁的持续时间越短越好,通过异步化,提前加载资源,�乐观锁来解决
pprof , heap, alloc
Make map 1000 要 0.2ms, insert copy 要 0.2ms
Create 1000 slice 要 0.2ns, 在栈上分配。 如果在堆上分配要 120ns
优先级锁,请求是按需进来的,然后想让最先进来的最先完成, 也就是说当他在来抢锁的时候要让他最先拿到锁。
COW, 对于多个对象的管理,只在修改对象的时候才deepcopy
内存数据库, 隔离性,原子性
The text was updated successfully, but these errors were encountered:
No branches or pull requests
并发能力提升讨论
拆分,横向扩容
直接使用有状态服务,解决分布锁的问题,提升IO能力
锁的范围越小越好
锁的持续时间越短越好,通过异步化,提前加载资源,�乐观锁来解决
pprof , heap, alloc
Make map 1000 要 0.2ms, insert copy 要 0.2ms
Create 1000 slice 要 0.2ns, 在栈上分配。 如果在堆上分配要 120ns
优先级锁,请求是按需进来的,然后想让最先进来的最先完成, 也就是说当他在来抢锁的时候要让他最先拿到锁。
COW, 对于多个对象的管理,只在修改对象的时候才deepcopy
内存数据库, 隔离性,原子性
The text was updated successfully, but these errors were encountered: