diff --git a/docs/books/distributed-system.md b/docs/books/distributed-system.md index d3860aa2..e712ecfe 100644 --- a/docs/books/distributed-system.md +++ b/docs/books/distributed-system.md @@ -18,9 +18,9 @@ icon: "distributed-network" ![](https://oss.javaguide.cn/github/javaguide/books/image-20220706121952258.png) -作者专门写了一篇文章来介绍这本书的背后的故事,感兴趣的小伙伴可以自行查阅:https://zhuanlan.zhihu.com/p/487534882 。 +作者专门写了一篇文章来介绍这本书的背后的故事,感兴趣的小伙伴可以自行查阅: 。 -最后,放上这本书的代码仓库和勘误地址:https://github.com/tangwz/DistSysDeepDive 。 +最后,放上这本书的代码仓库和勘误地址: 。 ## 《数据密集型应用系统设计》 @@ -32,7 +32,7 @@ icon: "distributed-network" 书中介绍的大部分概念你可能之前都听过,但是在看了书中的内容之后,你可能会豁然开朗:“哇塞!原来是这样的啊!这不是某技术的原理么?”。 -这本书我之前专门写过知乎回答介绍和推荐,没看过的朋友可以看看:[有哪些你看了以后大呼过瘾的编程书? ](https://www.zhihu.com/question/50408698/answer/2278198495) 。 +这本书我之前专门写过知乎回答介绍和推荐,没看过的朋友可以看看:[有哪些你看了以后大呼过瘾的编程书?](https://www.zhihu.com/question/50408698/answer/2278198495) 。 另外,如果你在阅读这本书的时候感觉难度比较大,很多地方读不懂的话,我这里推荐一下《深入理解分布式系统》作者写的[《DDIA 逐章精读》小册](https://ddia.qtmuniao.com)。 diff --git a/docs/database/nosql.md b/docs/database/nosql.md index cf4911d9..5c3afd1b 100644 --- a/docs/database/nosql.md +++ b/docs/database/nosql.md @@ -54,6 +54,6 @@ NoSQL 数据库主要可以分为下面四种类型: ## 参考 -- NoSQL 是什么?- MongoDB 官方文档:https://www.mongodb.com/zh-cn/nosql-explained -- 什么是 NoSQL? - AWS:https://aws.amazon.com/cn/nosql/ -- NoSQL vs. SQL Databases - MongoDB 官方文档:https://www.mongodb.com/zh-cn/nosql-explained/nosql-vs-sql +- NoSQL 是什么?- MongoDB 官方文档: +- 什么是 NoSQL? - AWS: +- NoSQL vs. SQL Databases - MongoDB 官方文档: diff --git a/docs/distributed-system/distributed-lock.md b/docs/distributed-system/distributed-lock.md index e5177ed7..bb00373e 100644 --- a/docs/distributed-system/distributed-lock.md +++ b/docs/distributed-system/distributed-lock.md @@ -95,7 +95,7 @@ OK ### 如何实现锁的优雅续期? -对于 Java 开发的小伙伴来说,已经有了现成的解决方案:**[Redisson](https://github.com/redisson/redisson)** 。其他语言的解决方案,可以在 Redis 官方文档中找到,地址:https://redis.io/topics/distlock 。 +对于 Java 开发的小伙伴来说,已经有了现成的解决方案:**[Redisson](https://github.com/redisson/redisson)** 。其他语言的解决方案,可以在 Redis 官方文档中找到,地址: 。 ![Distributed locks with Redis](https://oss.javaguide.cn/github/javaguide/redis-distributed-lock.png) @@ -116,7 +116,7 @@ public Config setLockWatchdogTimeout(long lockWatchdogTimeout) { return this; } public long getLockWatchdogTimeout() { - return lockWatchdogTimeout; + return lockWatchdogTimeout; } ``` @@ -276,7 +276,7 @@ InterProcessLock lock2 = new InterProcessSemaphoreMutex(client, lockPath2); InterProcessMultiLock lock = new InterProcessMultiLock(Arrays.asList(lock1, lock2)); if (!lock.acquire(10, TimeUnit.SECONDS)) { - throw new IllegalStateException("不能获取多锁"); + throw new IllegalStateException("不能获取多锁"); } System.out.println("已获取多锁"); System.out.println("是否有第一个锁: " + lock1.isAcquiredInThisProcess()); diff --git a/docs/high-availability/timeout-and-retry.md b/docs/high-availability/timeout-and-retry.md index ace1aeb6..407ec9c0 100644 --- a/docs/high-availability/timeout-and-retry.md +++ b/docs/high-availability/timeout-and-retry.md @@ -66,5 +66,5 @@ category: 高可用 ## 参考 -- 微服务之间调用超时的设置治理:https://www.infoq.cn/article/eyrslar53l6hjm5yjgyx -- 超时、重试和抖动回退:https://aws.amazon.com/cn/builders-library/timeouts-retries-and-backoff-with-jitter/ +- 微服务之间调用超时的设置治理: +- 超时、重试和抖动回退: diff --git a/docs/open-source-project/practical-project.md b/docs/open-source-project/practical-project.md index 60d76671..a242fc56 100644 --- a/docs/open-source-project/practical-project.md +++ b/docs/open-source-project/practical-project.md @@ -66,4 +66,4 @@ icon: project - [mini-spring-cloud](https://github.com/DerekYRC/mini-spring-cloud) :一个手写的简化版的 Spring Cloud,旨在帮助你快速熟悉 Spring Cloud 源码及掌握其核心原理。相关阅读:[手写一个简化版的 Spring Cloud!](https://mp.weixin.qq.com/s/v3FUp-keswE2EhcTaLpSMQ) 。 - [itstack-demo-jvm](https://github.com/fuzhengwei/itstack-demo-jvm) :通过 Java 代码来实现 JVM 的基础功能(搜索解析 class 文件、字节码命令、运行时数据区等。相关阅读:[《zachaxy 的手写 JVM 系列》](https://zachaxy.github.io/tags/JVM/)。 - [Freedom](https://github.com/alchemystar/Freedom) :自己 DIY 一个具有 ACID 的数据库。相关项目:[MYDB](https://github.com/CN-GuoZiyang/MYDB)(一个简单的数据库实现)、[toyDB](https://github.com/erikgrinaker/toydb)(Rust 实现的分布式 SQL 数据库)。 -- [lu-raft-kv](https://github.com/stateIs0/lu-raft-kv) :一个 Java 版本的 Raft(CP) KV 分布式存储实现,非常适合想要深入学习 Raft 协议的小伙伴研究。lu-raft-kv 已经实现了 Raft 协议其中的两个核心功能:leader 选举和日志复制。如果你想要学习这个项目的话,建议你提前看一下作者写的项目介绍,比较详细,地址:http://thinkinjava.cn/2019/01/12/2019/2019-01-12-lu-raft-kv/ 。 +- [lu-raft-kv](https://github.com/stateIs0/lu-raft-kv) :一个 Java 版本的 Raft(CP) KV 分布式存储实现,非常适合想要深入学习 Raft 协议的小伙伴研究。lu-raft-kv 已经实现了 Raft 协议其中的两个核心功能:leader 选举和日志复制。如果你想要学习这个项目的话,建议你提前看一下作者写的项目介绍,比较详细,地址: 。 diff --git a/docs/open-source-project/tutorial.md b/docs/open-source-project/tutorial.md index 3fd14eb5..5da7aea3 100644 --- a/docs/open-source-project/tutorial.md +++ b/docs/open-source-project/tutorial.md @@ -18,7 +18,7 @@ icon: "book" ## 计算机基础 -- **[cs-self-learning ](https://github.com/PKUFlyingPig/cs-self-learning)** :计算机自学指南,汇总欧美众多名校高质量计算机课程。 +- **[cs-self-learning](https://github.com/PKUFlyingPig/cs-self-learning)** :计算机自学指南,汇总欧美众多名校高质量计算机课程。 - **[CS-Notes](https://github.com/CyC2018/CS-Notes "CS-Notes")** :技术面试必备基础知识、Leetcode 题解、后端面试、Java 面试、春招、秋招、操作系统、计算机网络、系统设计。 - **[Waking-Up](https://github.com/wolverinn/Waking-Up)** :计算机基础(计算机网络/操作系统/数据库/Git...)面试问题全面总结。 diff --git a/docs/system-design/basis/RESTfulAPI.md b/docs/system-design/basis/RESTfulAPI.md index 65e289bf..1557417c 100644 --- a/docs/system-design/basis/RESTfulAPI.md +++ b/docs/system-design/basis/RESTfulAPI.md @@ -164,14 +164,14 @@ GET /classes?page=1&size=10 //指定第1页,每页10个数据 ## 参考 -- https://RESTfulapi.net/ +- -- https://www.ruanyifeng.com/blog/2014/05/restful_api.html +- -- https://juejin.im/entry/59e460c951882542f578f2f0 +- -- https://phauer.com/2016/testing-RESTful-services-java-best-practices/ +- -- https://www.seobility.net/en/wiki/REST_API +- -- https://dev.to/duomly/rest-api-vs-graphql-comparison-3j6g +-