Skip to content

Commit

Permalink
优化文章
Browse files Browse the repository at this point in the history
  • Loading branch information
makemyownlife committed Jan 16, 2024
1 parent e8a3502 commit 9dd1af6
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
推荐你通过在线阅读网站进行阅读,体验更好,速度更快!地址:[javayong.cn](https://javayong.cn/)

![](https://javayong.cn/pics/shipinhao/gongzhonghaonew.png)

## 缓存实战
- [本地缓存VS分布式缓存](./docs/cache/00localandclustercache.md)
- [四种强大的JDK本地缓存](./docs/cache/01fourJDKlocalcache.md)
Expand Down
4 changes: 3 additions & 1 deletion docs/cache/00localandclustercache.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,6 @@ Redis 是分布式缓存的首选,甚至我们一提到缓存,很多后端

假如应用业务比较复杂,需要使用缓存提升系统的性能,同时分布式缓存共享的特性对于研发来讲开发更加快捷,Redis 确实是个不错的选择。

总而言之,**在技术领域中,没有银弹**。我们需要不断探索和研究新的技术,但同时也需要认识到技术的局限性,不盲目追求所谓的“银弹”,而是结合具体问题和需求,选择最适合的解决方案。
总而言之,**在技术领域中,没有银弹**。我们需要不断探索和研究新的技术,但同时也需要认识到技术的局限性,不盲目追求所谓的“银弹”,而是结合具体问题和需求,选择最适合的解决方案。

![](https://javayong.cn/pics/shipinhao/gongzhonghaonew.png)
2 changes: 2 additions & 0 deletions docs/cache/01fourJDKlocalcache.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,5 @@ Cobar 抽象了一个 NIOProcessor 类用来处理网络请求,每个处理器
3、TreeMap 是一种基于红黑树的有序 Map 。TreeMap 在一致性哈希中可以用作节点/虚拟节点的存储结构,用来维护节点在哈希环上的位置和键的有序性。

4、ByteBuffer 是字节缓冲区,主要用于用户读取和缓存字节数据,多用于网络编程、文件 IO 处理等。分库分表中间件 Cobar 在网络请求处理中,创建了缓冲池 BufferPool 用于池化 ByteBuffer ,从而大大提升系统的性能。

![](https://javayong.cn/pics/shipinhao/gongzhonghaonew.png)
2 changes: 2 additions & 0 deletions docs/cache/02pagelistcache.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,5 @@ ZREVRANGE 是 Redis 中用于有序集合(sorted set)的命令之一,它
这三种方式是一层一层递进的,要诀是:

**细粒度的控制缓存****批量加载对象**

![](https://javayong.cn/pics/shipinhao/gongzhonghaonew.png)
5 changes: 4 additions & 1 deletion docs/cache/05boolfilter.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,4 +420,7 @@ Java 世界里 ,通过 Guava 和 Redisson 创建和使用布隆过滤器非常

参考资料:

> https://hackernoon.com/probabilistic-data-structures-bloom-filter-5374112a7832
> https://hackernoon.com/probabilistic-data-structures-bloom-filter-5374112a7832

![](https://javayong.cn/pics/shipinhao/gongzhonghaonew.png)
1 change: 1 addition & 0 deletions docs/cache/07Redistransaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,3 +352,4 @@ Lua 脚本是另一种形式的事务,他具备一定的原子性,但脚本
1. 为了避免 Redis 阻塞,Lua 脚本业务逻辑不能过于复杂和耗时;
2. 仔细检查和测试 Lua 脚本 ,因为执行 Lua 脚本具备一定的原子性,不支持回滚。

![](https://javayong.cn/pics/shipinhao/gongzhonghaonew.png)
5 changes: 4 additions & 1 deletion docs/cache/12howtodesigncachesdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,4 +408,7 @@ public String hellodanbiao() {

参考资料:

> Redis 集成简介:https://juejin.cn/post/7076244567569203208
> Redis 集成简介:https://juejin.cn/post/7076244567569203208

![](https://javayong.cn/pics/shipinhao/gongzhonghaonew.png)
1 change: 1 addition & 0 deletions docs/cache/13GuavaCache.md
Original file line number Diff line number Diff line change
Expand Up @@ -935,3 +935,4 @@ V lockedGetOrLoad(K key, int hash, CacheLoader<? super K, V> loader) throws Exec
>
> https://qiankunli.github.io/2019/06/20/guava_cache.html
![](https://javayong.cn/pics/shipinhao/gongzhonghaonew.png)
2 changes: 2 additions & 0 deletions docs/codelife/guotuxuexistorm.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,5 @@ storm逻辑图,已授权
时光荏苒,我已中年,生命中遇到越来越多的挫折,有的时候也会让人低落,但每当想起这个故事,我会深深感动于当时的一往无前。

当再次面临选择时,我希望自己也能够向前一步,想着如何帮助读者成长,或是实现一个产品帮助更多的人。

![](https://javayong.cn/pics/shipinhao/gongzhonghaonew.png)
2 changes: 2 additions & 0 deletions docs/codelife/howtolearnopenproject.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,5 @@ void registerProcessor(
亲爱的程序员朋友,当你不知道选择哪一个开源项目开始学习时,希望你**立足当下,行动起来**。当前技术团队使用的开源组件,正是你学习的方向。

行动起来,你会变成更好的自己,加油。

![](https://javayong.cn/pics/shipinhao/gongzhonghaonew.png)
5 changes: 4 additions & 1 deletion docs/codelife/messagequeuecareer.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,4 +444,7 @@ Kafka设计初衷就是为了应对大量日志传输场景,应用通过可靠
我学习消息队列的过程是不断思考,不断实践的过程,虽然我以为的极限,弄不好,只是别人的起点,但至少现在,当我面对这门技术的时候,我的内心充满了好奇心,同时也是无所畏惧的。

我始终相信:每天学习一点点,比昨天进步一点点就好。
我始终相信:每天学习一点点,比昨天进步一点点就好。


![](https://javayong.cn/pics/shipinhao/gongzhonghaonew.png)
1 change: 1 addition & 0 deletions docs/codelife/runningforcode.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,4 @@ Schedule-Client 收到调度请求后,会将任务丢到线程池中异步执

亲爱的程序员朋友,爱你所选,全情投入,相信你必有所得。

![](https://javayong.cn/pics/shipinhao/gongzhonghaonew.png)
2 changes: 2 additions & 0 deletions docs/sharding/shardingspherejdbc/00coreconcept.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,5 @@ db0.t_order0, db0.t_order1, db1.t_order2, db1.t_order3, db1.t_order4
参考文档:

> https://shardingsphere.apache.org/document/4.1.0/cn/features/sharding/
![](https://javayong.cn/pics/shipinhao/gongzhonghaonew.png)
2 changes: 2 additions & 0 deletions docs/sharding/shardingspherejdbc/01coreinsight.md
Original file line number Diff line number Diff line change
Expand Up @@ -639,3 +639,5 @@ SELECT * FROM t_order WHERE id > 10000000 LIMIT 10;
归并引擎的整体结构划分如下图。

![归并引擎结构](../../images/merge_architecture_cn.png)

![](https://javayong.cn/pics/shipinhao/gongzhonghaonew.png)

0 comments on commit 9dd1af6

Please sign in to comment.