Loading

上一页 1 2 3 4 5 6 7 ··· 27 下一页
摘要: 1.问题 最近在写一个熔断的 SDK,其中一种策略是根据慢请求来进行熔断。 我们在测试的时候,在对应 API 里面采用了 Thread.Sleep(ms) 来模拟慢请求。 设置的慢请求阈值是 RT 100ms,我们设置了 Thread.Sleep(90ms),但是发现竟然触发了熔断。最近分析发现是 阅读全文
posted @ 2022-05-09 13:56 晓晨Master 阅读(3343) 评论(6) 推荐(12) 编辑
摘要: 环境 CentOS 8 官方文档 https://grafana.com/docs/grafana/latest/installation/rpm/ 1. 安装 sudo nano /etc/yum.repos.d/grafana.repo 写入配置 [grafana] name=grafana b 阅读全文
posted @ 2022-04-02 14:58 晓晨Master 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 官方文档 https://prometheus.io/docs/introduction/first_steps/ 中文文档 https://prometheus.fuckcloudnative.io/di-yi-zhang-jie-shao/overview 安装文档:https://promet 阅读全文
posted @ 2022-04-02 14:13 晓晨Master 阅读(420) 评论(0) 推荐(0) 编辑
摘要: Prometheus 的 go sdk 是由官方提供的,地址:https://github.com/prometheus/client_golang ,里面包含了生成 prometheus metrics、http handler、prometheus client 的功能。 安装: go get 阅读全文
posted @ 2022-04-02 11:26 晓晨Master 阅读(3680) 评论(0) 推荐(0) 编辑
摘要: 使用命令 ,指定版本号即可 go get github.com/xxx/xxx@1.0.0 如果使用的模块项目没有发布新的版本,那么可以使用 git commit SHA go get github.com/xxx/xxx@29e8191aff2174cb56888658b4afd6a7940a9b 阅读全文
posted @ 2022-04-02 11:20 晓晨Master 阅读(838) 评论(0) 推荐(0) 编辑
摘要: 在和 Go 语言提供的 API 通信时,如果 Go Json 反序列化字段类型直接使用的 time.Time 那么对时间有格式要求,必须是 RFC3399 # 秒 DateTime.Now.ToString("yyyy-MM-dd'T'HH:mm:ss'Z'") # 毫秒 DateTime.Now. 阅读全文
posted @ 2022-03-28 16:33 晓晨Master 阅读(801) 评论(1) 推荐(0) 编辑
摘要: 1.无限等待 我们在使用 WhenAll 和 WaitAll 时,一定得要注意:1.必须添加超时时间,防止无限等待 2.等待的 Task 一定要保证是启动的。 比如下面这种写法: using System; using System.Collections.Generic; using System 阅读全文
posted @ 2022-03-28 16:06 晓晨Master 阅读(7447) 评论(4) 推荐(2) 编辑
摘要: 原文 https://devblogs.microsoft.com/dotnet/dotnet-loves-github-actions/ 嗨朋友们,我整理了一些帖子,我将向您介绍GitHub Actions平台的基础知识。在这篇文章中,您将了解 GitHub Actions 如何改善您的 .NET 阅读全文
posted @ 2022-03-28 15:17 晓晨Master 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 微软提供了 gRPC 的 Nuget 包,可以快速的帮我们根据 .proto 文件来生成 gRPC 调用,在某些场景下,我们不引用ms 提供的包能否生成文件呢?答案当然是可以的。 首先给你的项目安装2个 nuget 包: Google.Protobuf Grpc.Net.Client 下载 C# g 阅读全文
posted @ 2022-03-28 15:00 晓晨Master 阅读(1179) 评论(0) 推荐(0) 编辑
摘要: 原文:https://devblogs.microsoft.com/dotnet/dotnet-5-end-of-support-update/ .NET 5.0 将于 2022 年 5 月 8 日终止支持。在 .NET 5 月更新之后,Microsoft 将不再为 .NET 5.0 提供服务更新, 阅读全文
posted @ 2022-03-28 14:38 晓晨Master 阅读(555) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 27 下一页