返回顶部
上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: 基于上一篇文章中的代码进行继续延伸,只需要小小的改动即可,不明白的地方可以先看看本人上一篇文章及源码: Identity Server 4客户端认证控制访问API 一、QuickStartIdentityServer4项目中Config.cs增加如下配置 // 定义客户端认证方式 public st 阅读全文
posted @ 2022-07-11 23:29 SportSky 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 一、说明 我们将定义一个api和要访问它的客户端,客户端将在identityser上请求访问令牌,并使用访问令牌调用api 二、项目结构与准备 1、创建项目QuickStartIdentityServer4的asp.net 3.1项目,端口号5001,NuGet: IdentityServer4 2 阅读全文
posted @ 2022-07-10 19:02 SportSky 阅读(727) 评论(1) 推荐(1) 编辑
摘要: NuGet:Polly 一、服务治理说明 1、重试(Retry) 2、断路器(熔断)(Circuit-Breaker) 3、超时检测(TimeOut) 4、缓存(Cache) 5、降级(Fallback) 二、简单使用 static async Task Main(string[] args) { 阅读全文
posted @ 2022-07-07 23:39 SportSky 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 一、简要说明 以下配置实现了: 1、分库分表 2、每一个分库的读写分离 3、读库负载均衡算法 4、雪花算法,生成唯一id 5、字段取模 6、解决笛卡尔积问题 7、设置默认所有表不进行分表 二、配置项 # # Licensed to the Apache Software Foundation (AS 阅读全文
posted @ 2022-07-01 00:55 SportSky 阅读(1235) 评论(1) 推荐(3) 编辑
摘要: # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this w 阅读全文
posted @ 2022-06-29 22:54 SportSky 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 一、修改配置文件config-sharding.yaml,并重启服务 # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NO 阅读全文
posted @ 2022-06-27 23:51 SportSky 阅读(527) 评论(0) 推荐(1) 编辑
摘要: 一、主从复制原理 二、环境准备 192.168.140.131 主库 192.168.140.132 从库 三、主库配置 1、修改配置文件 /etc/my.cnf #mysql服务ID,保证整个集群环境中唯一,取值范围:1-232-1,默认为1 server-id=1 #是否只读,1代表只读,0代表 阅读全文
posted @ 2022-06-26 16:46 SportSky 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 一、修改配置文件config-sharding.yaml,并重启服务 # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NO 阅读全文
posted @ 2022-06-23 23:38 SportSky 阅读(705) 评论(0) 推荐(0) 编辑
摘要: 一、说明 主要是对字符串的字段进行hash取模 二、修改配置文件config-sharding.yaml,并重启服务 # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor licens 阅读全文
posted @ 2022-06-22 00:00 SportSky 阅读(1086) 评论(0) 推荐(0) 编辑
摘要: 一、目的 保证在分库分表中每条数据具有唯一性 二、修改配置文件config-sharding.yaml,并重启服务 # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license 阅读全文
posted @ 2022-06-20 00:26 SportSky 阅读(718) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 11 下一页
作者:SportSky 出处: http://www.cnblogs.com/sportsky/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。如果觉得还有帮助的话,可以点一下右下角的【推荐】,希望能够持续的为大家带来好的技术文章!想跟我一起进步么?那就【关注】我吧。