![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
基础
文章平均质量分 55
王'献森
这个作者很懒,什么都没留下…
展开
-
SpringBoot集成Redis
一.创建SpringBoot工程 1.导入jar包 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.原创 2021-09-23 00:17:00 · 148 阅读 · 0 评论 -
Python 操作Elasticsearch Api
一. 环境准备: Python 3.8 Elasticsearch 7.5 VirtaulBox 虚拟机客户端CentOs7 二. 连接Es 安装依赖包:pip install elasticsearch 连接es 方法: # -*- coding=utf8 -*- from elasticsearch import Elasticsearch import json es = Elasticsearch(hosts="192.168.0.102", port=9200) 三.API详解 获取索引原创 2021-06-21 23:14:09 · 636 阅读 · 1 评论 -
Gateway新一代网关
概述简介 官网: zuul 1.X : https://github.com/Netflix/zuul/wiki Gateway: http://cloud.spring.io/spring-cloud-static/spring-cloud-gateway/2.2.1.RELEASE/reference/html 是什么 cloud全家桶中有个很重要的组件就是网关,在1.X版本中都采用了zuul网关; 但在2.x版本中,zuul的升级一直在跳票,SpringCloud最后自己研发了一个网关代替zuul.原创 2020-08-10 23:09:57 · 544 阅读 · 0 评论 -
Hystrix断路器
概述: 分布式系统面临的问题? 复杂分式式体系中的应用程序有数十个依赖关系,每个依赖关系在某些时候将不可避免地失败。 服务雪崩的概念: 多个微服务之间调用的时候,假设微服务A调用微服务B和微服务C,微服务B和微服务C又调用其他微服务,这就是所谓的**“扇出” ** 。如果扇出的链路上某个微服务的调用响应时间过长或者不可用,对微服务的调用就会占用越来越多的系统资源,进而引起系统崩溃,所谓的**“雪崩效应”** 对高流量的应用来说,单一的后端依赖可能会导致所有的服务器上所有的资源都在几秒中内饱和,比失败更槽糕原创 2020-08-07 00:25:23 · 137 阅读 · 0 评论 -
OpenFeign服务接口调用
官网: https://cloud.spring.io/spring-cloud-static/Hoxton.SR1/reference/htmlsingle/#spring-cloud-openfeign 概述 Feign 是一个声明式WebService客户端.使用Feign能让编写WebService客户端更加简单. 它的使用方法是定义一个服务接口然后在上面添加注解.Feign也支持可拔插式的编码器和解码器,Spring Cloud对Feign进行了封装,使其支持了SpringMVC标准注解和Http原创 2020-08-01 01:50:09 · 501 阅读 · 0 评论