原创 【SpringMVC源碼】啓動流程

前言 Github:https://github.com/yihonglei/thinking-in-springmvc Spring MVC執行流程:https://jpeony.blog.csdn.net/article/detail

原创 【SpringMVC源碼】執行流程

前言 Github:https://github.com/yihonglei/thinking-in-springmvc Spring MVC啓動流程:https://jpeony.blog.csdn.net/article/detail

原创 【daisy-framework】延時任務設計(DelayTask)

前言 Github:https://github.com/yihonglei/daisy-framework 一 延時任務 延時任務依靠延時隊列實現。我們有定時任務了,爲什麼還需要延時任務? 假如一個線程每隔5s去處理一次業務,這個業務依

原创 Netty快速開始

前言 Github:https://github.com/yihonglei/thinking-in-netty 一 Netty概述 Netty 提供異步的、事件驅動的網絡應用程序框架和工具,用以快速簡單開發高性能、高可靠性的網絡服務器和

原创 Java多線程/高併發面試

前言 Github:https://github.com/yihonglei/thinking-in-concurrent(Java併發編程) Blog:https://blog.csdn.net/yhl_jxy/category_928

原创 消息中間件面試(RocketMQ、RabbitMQ、Kafka、ActiveMQ)

前言 Github:https://github.com/yihonglei/message-middle RabbitMQ基礎:https://blog.csdn.net/yhl_jxy/category_6979741.html Ro

原创 MySql 索引優化原則

索引優化有很作最佳實踐原則,下面對常用原則進行分析。 MySql索引底層數據結構和算法:https://blog.csdn.net/yhl_jxy/article/details/88392411 MySql explan執行計劃詳解:h

原创 Spring Cloud--Feign開啓對Hystrix支持

前言 Github:https://github.com/yihonglei/thinking-in-springcloud Eureka註冊中心:eureka-server 服務提供者(訂單服務):eureka-provider-ord

原创 ThreadLocal、ThreadLocalMap源碼分析

前言 Github:https://github.com/yihonglei/thinking-in-concurrent 一 ThreadLocal原理 ThreadLocal的作用就是讓每個線程綁定自己的局部變量,用於存儲每個線程的私

原创 Spring Cloud--Eureka註冊中心安全認證

前言 Github:https://github.com/yihonglei/thinking-in-springcloud Eureka安全認證註冊中心:eureka-server-security 客戶端通過安全認證方式進行服務註冊:

原创 Redis持久化(rdb、aof、混合)

前言 Redis是基於內存操作的單線程緩存中間件。 一 RDB快照(snapshot) 在默認情況下,Redis將內存數據庫快照保存在dump.rdb二進制文件中, Redis服務重新啓動時根據dump.rdb文件重寫Redis內存。 d

原创 【daisy-framework】開發規範

前言 Github:https://github.com/yihonglei/daisy-framework 一 daisy-framework介紹 Spring Boot前後端分離,集成MyBatis、數據庫、消息中間件、緩存中間件、分

原创 MySql 索引底層數據結構和算法

前言 文章基於MySql 5.7.24分析,部分圖片源於網絡,是MySql索引學習筆記。 MySQL數據庫支持多種索引類型,如BTree索引,哈希索引,全文索引等等。 這裏只關注BTree索引,這是平時實戰中使用最多的索引。 一 MySq

原创 阻塞隊列(BlockingQueue)源碼分析

前言 GitHub:https://github.com/yihonglei/thinking-in-concurrent 一 BlockingQueue BlockingQueue大概類關係。 BlockingQueue上層跟普通Li

原创 飽和策略源碼分析

前言 Github:https://github.com/yihonglei/thinking-in-concurrent 一 Abort策略 默認策略,新任務提交時直接拋出未檢查的異常RejectedExecutionException