background picture of the home page

Hi,Friend

JMM 内存模型

注意:永久代(1.8 之前)以及元空间(1.8 以及之后)是 HotSpot 虚拟机对虚拟机规范中

thumbnail of the cover of the post

MySQL 性能优化

sql 优化 避免使用 select * 用 union all 代替 union 小表驱动大表 in 适用于左边大表,右边小表。

thumbnail of the cover of the post

事务问题

https://blog.csdn.net/hanjiaqian/article/details/120501741 事务不生效 原理 生成了代理类,在代理类中实现事务功能。

thumbnail of the cover of the post

RabbitMQ

协议 消息中间件负责数据的传递,存储,和分发消费三个部分,数据的存储和分发的过程中肯定要遵循某种约定成俗的规范,是采用底层的TCP/IP,UDP 协议还是在这基础上自己构建等,而这些约定成俗的规范就称之为:协议。 面试题:为什么消息中间件不直接使用 http 协议呢? 因为 http 请求报文头

thumbnail of the cover of the post

ForkJoinPool、parallelStream、CompletableFuture

work-stealing 工作窃取算法 一种多线程和并行计算中的负载平衡策略,主要在 Java 的 Fork/Join 框架中得到应用。其基本思想是允许线程在完成其任务后从其他线程中“窃取”工作。工作窃取策略允许这些完成得快的线程去“窃取”其他线程的工作,从而尽可能均衡地利用所有可用的计算资源。

thumbnail of the cover of the post

Redis的 Big Key 问题

是指当 Redis 的字符串类型过大,非字符串类型元素过多。 影响 Redis 阻塞 :因为 Redis 单线程特性,如果操作某个 Bigkey 耗时比较久,则后面的请求会被阻塞。 内存空间不均匀 :比如在 Redis cluster 或者 codis 中,会造成节点的内存使用不均匀。

thumbnail of the cover of the post

Redis三大模式

主从复制 https://blog.csdn.net/weixin_44642403/article/details/110692692 主从模式

thumbnail of the cover of the post

MySQL主从复制

https://blog.csdn.net/isis45454545454/article/details/126510152 master端 my.ini (my.cnf): [mysqld] #[必须]启用二进制日志,数据间复制必不可少 log-bin=mysql-bin #[必须]服务器唯一

thumbnail of the cover of the post