Ribbon是如何进行负载的
摘要:# 1.Ribbon是如何进行负载的 ``` 配置类:RibbonClientConfiguration @Bean @ConditionalOnMissingBean public ILoadBalancer ribbonLoadBalancer(IClientConfig config, Ser
阅读全文
Redis基础
摘要:# 0、常用操作 - redis-server redis.conf 启动 - redis-cli 执行shutdown命令 会进行保存 - lastsave 最后的更新时间 # 1. Redis 5种数据类型 - string(字符串) - hash(哈希散列) - list(列表) - set(
阅读全文
基于Redis的队列
摘要:# 1. 队列 ``` //发布 @ApiOperation(value = "put 普通队列") @PostMapping("/queuePut") public Object put(@RequestBody CommonMapRespDTO respDTO) { for (int i = 0
阅读全文
基于Redis的数据一致性
摘要:# 1. 分布式的环境下, MySQL和Redis如何保持数据的一致性? 解决方案: 延时双删 参考链接: https://www.zhihu.com/question/36413559 # 2.通常情况下的查询请求处理流程 ; //是否加锁成功 boolean isLock = rLock.tryLock(timeOut, expireTi
阅读全文
线程池
摘要:# 参考文档 > https://www.toutiao.com/i6820216970252648971/?timestamp=1611647531&app=news_article_lite&use_new_style=1&req_id=20210126155210010130037012330
阅读全文
JVM参数及其优化案例
摘要:1、参考 https://www.cnblogs.com/hopeway-shaon/p/17679430.html 2、
阅读全文
Redis
摘要:# 1. 基本数据类型 - String - List - Set - ZSet - Hash # 2. 持久化  #
阅读全文
Java常见的队列
摘要:# 队列分类 1. 阻塞队列 阻塞队列要实现接口:BlockingQueue - ArrayBlockingQueue :一个由数组支持的有界队列。 - LinkedBlockingQueue :一个由链接节点支持的可选有界队列。 - PriorityBlockingQueue :一个由优先级堆支持
阅读全文
Nacos注册中心与配置中心
摘要:### Nacos中文官网 > https://nacos.io/zh-cn/docs/v2/quickstart/quick-start.html ### 客户端注册流程(客户端pull和服务端push) ``` //1、加载配置类NacosDiscoveryProperties //配置的优先级
阅读全文