上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 46 下一页
摘要: ## 1.什么是微服务 微服务架构是一个分布式系统, 按照业务进行划分成为不同的服务单元, 解决单体系统性能等不足。 微服务是一种架构风格,一个大型软件应用由多个服务单元组成。系统中的服务单元可以单独部署,各个服务单元之间是松耦合的。 ## 2.微服务之间通信 - Rest Http协议 RestT 阅读全文
posted @ 2023-08-05 18:36 lwx_R 阅读(85) 评论(0) 推荐(0)
摘要: 1.使用 前端js function createScoket(token){ var socket; if(typeof(WebSocket) == "undefined") { console.log("您的浏览器不支持WebSocket"); }else{ var host = window. 阅读全文
posted @ 2023-08-05 13:45 lwx_R 阅读(32) 评论(0) 推荐(0)
摘要: ## 1.介绍 elastic-job 是由当当网基于quartz 二次开发之后的分布式调度解决方案 , 由两个相对独立的子项目Elastic-Job-Lite和Elastic-Job-Cloud组成 。 elastic-job主要的设计理念是无中心化的分布式定时调度框架,思路来源于Quartz的基 阅读全文
posted @ 2023-07-20 11:13 lwx_R 阅读(64) 评论(0) 推荐(0)
摘要: ## 1.安装部署 #### 1.1 下载安装包解压 #### 1.2 修改配置 - file.conf修改数据库配置 ``` user = "mysql" password = "mysql ``` - registry.conf 将type都换成nacos ``` type = "nacos" 阅读全文
posted @ 2023-07-19 09:36 lwx_R 阅读(27) 评论(0) 推荐(0)
摘要: ## 1.下载安装包解压 ## 2.mysql配置 #### 2.1 启动binlog功能 - 查看是否启动 ``` show variables like 'binlog_format%' ``` - 修改my.cnf配置 ``` log-bin=mysql-bin #添加这一行就 ok binl 阅读全文
posted @ 2023-07-18 20:25 lwx_R 阅读(203) 评论(0) 推荐(0)
摘要: ## 1.下载安装包解压 ## 2.修改配置文件 - 新建data,log文件夹 - 修改conf/zoo.cfg ``` dataDir=D:\Code\ZooKeeper\zookeeper-3.4.11\data dataLogDir=D:\Code\ZooKeeper\zookeeper-3 阅读全文
posted @ 2023-07-18 20:15 lwx_R 阅读(12) 评论(0) 推荐(0)
摘要: ## 1.下载安装包解压 ## 2.环境配置 - 系统变量 ![](https://img2023.cnblogs.com/blog/2211217/202307/2211217-20230718192358551-384156754.png) ## 3.修改配置 - conf/broker.con 阅读全文
posted @ 2023-07-18 19:26 lwx_R 阅读(45) 评论(0) 推荐(0)
摘要: ## 1.什么是配置中心 在微服务架构中,当系统从一个单体应用,被拆分成分布式系统上一个个服务节后,配置文件也必须跟着迁移(分割) ,这样配置就分散了,不仅如此,分散中还包含着冗余,如下图: 配置中心将配置从各应用中剥离出来,对配置进行统一管理,应用自身不需要自身去管理配置 ![](https:// 阅读全文
posted @ 2023-07-06 21:27 lwx_R 阅读(76) 评论(0) 推荐(0)
摘要: ## 1.Spring Cloud Gateway Spring Cloud Gateway作为Spring Cloud生态系统中的网关,目标是替代Netflix Zuul 其不仅提供统一的路由方式,并且还基于Filter链的方式提供了网关基本的功能。 目前最新版Spring Cloud中引用的还是 阅读全文
posted @ 2023-07-04 10:53 lwx_R 阅读(90) 评论(0) 推荐(0)
摘要: ## 1.概念 随着微服务的流行,服务和服务之间的稳定性变得越来越重要。Sentinel 以流量为切入点,从流量控制、熔断降级、系统负载保护等多个维度保护服务的稳定性。 Sentinel具有以下特征: - 丰富的应用场景: Sentinel承接了阿里巴巴近10年的双十-大促流量的核心场景,例如秒杀( 阅读全文
posted @ 2023-07-01 15:27 lwx_R 阅读(45) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 46 下一页