Blog Articles
-
微服务网关spring cloud gateway
<p>文档:<br /> <a href="https://cloud.spring.io/spring-cloud-static/spring-cloud-gateway/2.0.2.RELEASE/single/spring-cloud-gateway.html" target="_blank">https://cloud.spring.io/spring-cloud-static/spring-cloud-gateway/2.0.2.RELEASE/single/spring-cloud-gatewa
Published on: -
微服务基于请求的日志跟踪
<h1><a id="_0"></a>需求</h1> <p>自从公司采用微服务架构以后,日志不好看了, 虽然已经把所有日志都收集到了elk, 但是因为一个前端的请求通过N个服务,导致日志分布很零乱,没有办法显示这一个请求相关的日志,所以需要开发一点小功能来实现单个请求的跟踪.</p> <h1><a id="_3"></a>设计</h1> <p>基本的想法是, 对每个请求设置一个RequestId, 然后让这个id跟随请求传输到每个服务,进而打印到日志中. 需要解决以下问题:<br /> 1.请求id的隔离;
Published on: -
nginx https 证书配置
每个ip地址都只能配置一个证书,因为443端口只有一个服务 示例配置如下: server { root /var/www/html; server_name *.yourname.com; location ^~ / { if ($host =
Published on: