Skip to content

Commit

Permalink
chore: add c
Browse files Browse the repository at this point in the history
  • Loading branch information
alomerry committed Nov 7, 2023
1 parent f8ec03e commit e2c9d91
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .vitepress/sidebar/8gu/8gu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function BaGu(): DefaultTheme.SidebarItem[] {
collapsed: false,
items: [
{ text: 'Kubernetes', link: '/8gu/cloud-native/k8s/' },
// { text: 'CAP', link: '/8gu/cloud-native/cap' },
{ text: 'CAP', link: '/8gu/cloud-native/cap' },
]
},
{
Expand Down
13 changes: 13 additions & 0 deletions .vitepress/sidebar/8gu/cloud-native/cap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { type DefaultTheme } from 'vitepress'
import { BaGu } from '../8gu'

export function BaGuCAP(): DefaultTheme.SidebarItem[] {
return [
...BaGu(),
{
text: 'CAP',
link: '/8gu/cloud-native/cap',
items: []
},
]
}
3 changes: 2 additions & 1 deletion .vitepress/sidebar/8gu/cloud-native/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { type DefaultTheme } from 'vitepress'
import { BaGuK8S } from './k8s'

import { BaGuCAP } from './cap'
export function BaGuCloudNative(): DefaultTheme.SidebarMulti {
return {
'/8gu/cloud-native/cap': BaGuCAP(),
'/8gu/cloud-native/k8s': BaGuK8S(),
}
}
8 changes: 6 additions & 2 deletions 8gu/cloud-native/cap.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# xxx
# 分布式服务环境下的事务处理机制

https://javaguide.cn/distributed-system/protocol/cap-and-base-theorem.html

- 幂等设计
- 并发事务可见性 https://www.bilibili.com/video/BV1uv4y1S7tE/?spm_id_from=333.999.0.0&vd_source=ddc8289a36a2bf501f48ca984dc0b3c1
- 并发事务可见性 https://www.bilibili.com/video/BV1uv4y1S7tE/?spm_id_from=333.999.0.0&vd_source=ddc8289a36a2bf501f48ca984dc0b3c1

## Reference

- [分布式事务](https://icyfenix.cn/architect-perspective/general-architecture/transaction/distributed.html)
10 changes: 10 additions & 0 deletions 8gu/language/c/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# C

## 保持 C 的精神

- 信任程序员
- 不要妨碍程序员做需要做的事
- 保持语言精炼简单
- 只提供一种方法执行一项操作
- 让程序运行更快,即使不能保证其可移植性

0 comments on commit e2c9d91

Please sign in to comment.