基于Spring Cache实现Caffeine、jimDB多级缓存实战
在早期参与涅槃氛围标签中台项目中,前台要求接口性能999要求50ms以下,通过设计Caffeine、ehcache堆外缓存、jimDB三级缓存,利用内存、堆外、jimDB缓存不同的特性提升接口性能,内存缓存采用Caffeine缓存,利用WTinyLFU算法获得更高的内存命中率;同时利用堆外缓存降低内存缓存大小,减少GC频率,同时也减少了网络IO带来的性能消耗;利用JimDB提升接口高可用、高并发;后期通过压测及性能调优999性能<20ms
Wesley13 Wesley13
3年前
Spring Cloud Eureka解析(3) EurekaClient 重要缓存解析
EurekaClient也存在缓存,应用服务实例列表信息在每个EurekaClient服务消费端都有缓存。一般的,Ribbon的LoadBalancer会读取这个缓存,来知道当前有哪些实例可以调用,从而进行负载均衡。这个loadbalancer同样也有缓存。首先看这个LoadBalancer的缓存更新机制,相关类是PollingServerListUpd
Easter79 Easter79
3年前
spring拦截器实现seesion过期跳转首页
packagecom.zpedku.interceptor;importcom.zpedku.config.AppConfig;importcom.zpedku.model.SysUser;importlombok.extern.slf4j.Slf4j;importorg.apache.co
Stella981 Stella981
3年前
Spring Boot的@Service和@Autowired和@ComponentScan注解
SpringBoot的@Service和@Autowired和@ComponentScan注解SpringBoot项目的Bean装配默认规则是根据Application类(SpringBoot项目入口类)所在的包位置从上往下扫描,即只扫描该类所在的包及其子包。1.如果需要扫描其上层包中的类,则将其移动到其上层包中2.使用@ComponentSc
Stella981 Stella981
3年前
Spring Boot 2.3.0 新特性Redis 拓扑动态感应
本文为原创文章。欢迎任何形式的转载,但请务必注明出处冷冷https://lltx.github.io。(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Flltx.github.io%E3%80%82)SpringBoot2.3新特性优雅停机详解(https://www
Stella981 Stella981
3年前
Elasticsearch spring boot 指定拼音分词器
1下载ik中文/拼音分词器ik分词器:https://github.com/medcl/elasticsearchanalysisik(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Flink.jianshu.com%2F%3Ft%3Dhttps%3A
Stella981 Stella981
3年前
Spring Cloud Eureka 你还在让它裸奔吗??
前些天栈长在微信公众号Java技术栈分享了SpringCloudEureka最新版实现注册中心的实战教程:SpringCloudEureka注册中心集群搭建,Greenwich最新版!(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fmp.weixin.qq.com%2
Easter79 Easter79
3年前
Spring源码浅析之配置文件解析(一)
1.配置文件解析主流程!(https://static.oschina.net/uploads/space/2018/0425/222221_HsTd_3825911.png)2.默认标签解析!(https://static.oschina.net/uploads/space/2018/0425/222249_gV4v_3