fortinet面试总结
java通过锁和循环CAS来实现原子性才做
LinkedHashMap有序
string, final
final 存在stack里
references:
But about final variable JVM take these as a constant as they will not change after initiated .
And when a inner class try to access them compiler create a copy of that variable (not that variable it self) into the heap and create a synthetic field inside the inner class so even when the method execution is over it is accessible because the inner class has it own copy.
so does it finally means that final variables are stored in finally Stack memory Area?
final variable also stored in stack but the copy that variable which a inner class have stored in heap.
要考虑的因素
Method | 幂等性(无论调用多少次API, 结果都是一样的) | |
---|---|---|
get | 满足 | |
post | 不满足 | |
put | 满足 | |
DELETE | 满足 |
分布式的事务
要保证最终一致性, 根据业务场景体现在强一致性和弱一致性
version号, 软删除, 文件记录然后回滚
公有云的意义, 节省运维成本, 但是可扩展差.
喜欢我的专栏, 请加关注和点赞!!!
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。