
spring cloud
oldmee
这个作者很懒,什么都没留下…
展开
-
Spring Cloud中bus组件配置
原理架构图 用rabbitMQ或者Kafka都属于三方组件,必然要开启@EnableDiscoveryClient来代替@EnableEurekaClient想用上消息总线还须要加上如下配置,这样消息总线才能监测到组件的变化并进行同步spring.rabbitmq.host=localhostspring.rabbitmq.port=5672spring.ra...原创 2019-02-15 11:34:21 · 405 阅读 · 0 评论 -
spring cloud bus中的env与refresh
1. 依赖需要引入下面三个依赖:compile('org.springframework.cloud:spring-cloud-starter-config')compile('org.springframework.boot:spring-boot-starter-actuator')compile('org.springframework.boot:spring-boot-sta...转载 2019-02-15 15:12:54 · 1126 阅读 · 0 评论 -
Hystrix的线程池隔离和信号量隔离
信号量的隔离:it executes on the calling thread and concurrent requests are limited by the semaphore count.每次调用线程,当前请求通过计数信号量进行限制,当信号大于了最大请求数(maxConcurrentRequests)时,进行限制,调用fallback接口快速返回。最重要的是,信号量的调用...原创 2019-02-26 19:08:48 · 9497 阅读 · 1 评论