vault backup: 2026-03-03 00:17:29

This commit is contained in:
2026-03-03 00:17:29 +08:00
parent be2a1cf0d7
commit 4fb7260c68
3 changed files with 1286 additions and 25 deletions

View File

@@ -13,12 +13,12 @@
"state": { "state": {
"type": "markdown", "type": "markdown",
"state": { "state": {
"file": "questions/01-分布式系统/分布式.md", "file": "questions/01-分布式系统/分布式ID生成.md",
"mode": "source", "mode": "source",
"source": false "source": false
}, },
"icon": "lucide-file", "icon": "lucide-file",
"title": "分布式" "title": "分布式ID生成"
} }
} }
] ]
@@ -94,7 +94,7 @@
"state": { "state": {
"type": "backlink", "type": "backlink",
"state": { "state": {
"file": "questions/01-分布式系统/分布式.md", "file": "questions/01-分布式系统/分布式ID生成.md",
"collapseAll": false, "collapseAll": false,
"extraContext": false, "extraContext": false,
"sortOrder": "alphabetical", "sortOrder": "alphabetical",
@@ -104,7 +104,7 @@
"unlinkedCollapsed": true "unlinkedCollapsed": true
}, },
"icon": "links-coming-in", "icon": "links-coming-in",
"title": "分布式 的反向链接列表" "title": "分布式ID生成 的反向链接列表"
} }
}, },
{ {
@@ -113,12 +113,12 @@
"state": { "state": {
"type": "outgoing-link", "type": "outgoing-link",
"state": { "state": {
"file": "questions/01-分布式系统/分布式.md", "file": "questions/01-分布式系统/分布式ID生成.md",
"linksCollapsed": false, "linksCollapsed": false,
"unlinkedCollapsed": true "unlinkedCollapsed": true
}, },
"icon": "links-going-out", "icon": "links-going-out",
"title": "分布式 的出链列表" "title": "分布式ID生成 的出链列表"
} }
}, },
{ {
@@ -156,13 +156,13 @@
"state": { "state": {
"type": "outline", "type": "outline",
"state": { "state": {
"file": "questions/01-分布式系统/分布式.md", "file": "questions/01-分布式系统/分布式ID生成.md",
"followCursor": false, "followCursor": false,
"showSearch": false, "showSearch": false,
"searchQuery": "" "searchQuery": ""
}, },
"icon": "lucide-list", "icon": "lucide-list",
"title": "分布式 的大纲" "title": "分布式ID生成 的大纲"
} }
}, },
{ {
@@ -196,6 +196,14 @@
}, },
"active": "fcbc762a80282002", "active": "fcbc762a80282002",
"lastOpenFiles": [ "lastOpenFiles": [
"questions/15-简历面试/项目深挖题.md",
"questions/15-简历面试",
"questions/01-分布式系统/分布式锁.md",
"questions/14-Web3与区块链/README.md",
"questions/14-Web3与区块链/简历项目Web3迁移.md",
"questions/14-Web3与区块链/跨链技术.md",
"questions/14-Web3与区块链/Layer2扩容方案.md",
"questions/14-Web3与区块链/Golang与区块链开发.md",
"questions/14-Web3与区块链/高并发在区块链中的应用.md", "questions/14-Web3与区块链/高并发在区块链中的应用.md",
"questions/14-Web3与区块链/智能合约安全.md", "questions/14-Web3与区块链/智能合约安全.md",
"questions/14-Web3与区块链/DeFi协议与AMM.md", "questions/14-Web3与区块链/DeFi协议与AMM.md",
@@ -204,7 +212,6 @@
"questions/01-分布式系统/分布式事务.md", "questions/01-分布式系统/分布式事务.md",
"项目概述.md", "项目概述.md",
"README.md", "README.md",
"questions/01-分布式系统/分布式锁.md",
"questions/elastic-search.md", "questions/elastic-search.md",
"面试准备进度.md", "面试准备进度.md",
"questions/08-算法与数据结构/算法与数据结构学习指南.md", "questions/08-算法与数据结构/算法与数据结构学习指南.md",
@@ -220,17 +227,10 @@
"questions/13-Golang语言/项目结构和工程化.md", "questions/13-Golang语言/项目结构和工程化.md",
"questions/13-Golang语言/HTTP和Web开发.md", "questions/13-Golang语言/HTTP和Web开发.md",
"questions/13-Golang语言/性能优化.md", "questions/13-Golang语言/性能优化.md",
"questions/13-Golang语言/错误处理和测试.md",
"questions/13-Golang语言/Goroutine和并发模型.md",
"questions/13-Golang语言/Golang基础语法.md",
"questions/13-Golang语言/go-reflect-unsafe.md",
"questions/13-Golang语言/go-performance.md",
"questions/13-Golang语言/go-database.md",
"questions/13-Golang语言", "questions/13-Golang语言",
"questions/12-面试技巧", "questions/12-面试技巧",
"questions/11-运维", "questions/11-运维",
"questions/10-中间件", "questions/10-中间件",
"questions/09-网络与安全", "questions/09-网络与安全"
"questions/08-算法与数据结构"
] ]
} }

View File

@@ -46,7 +46,7 @@
### 2. 常见分布式 ID 方案对比 ### 2. 常见分布式 ID 方案对比
| 方案 | 唯一性 | 有序性 | 性能 | 复杂度 | 适用场景 | | 方案 | 唯一性 | 有序性 | 性能 | 复杂度 | 适用场景 |
|------|--------|--------|------|--------|----------| | -------------- | --- | --- | ----- | --- | --------- |
| **UUID** | ✅ | ❌ | ⭐⭐⭐⭐⭐ | 低 | 非主键、内部 ID | | **UUID** | ✅ | ❌ | ⭐⭐⭐⭐⭐ | 低 | 非主键、内部 ID |
| **数据库自增** | ✅ | ✅ | ⭐⭐ | 低 | 小规模、并发低 | | **数据库自增** | ✅ | ✅ | ⭐⭐ | 低 | 小规模、并发低 |
| **Redis INCR** | ✅ | ✅ | ⭐⭐⭐ | 低 | 中小规模 | | **Redis INCR** | ✅ | ✅ | ⭐⭐⭐ | 低 | 中小规模 |

File diff suppressed because it is too large Load Diff