hystrix on 赵小黑的博客 https://xiaohei.im/hugo-theme-pure/tags/hystrix/ Recent content in hystrix on 赵小黑的博客 Hugo -- gohugo.io Mon, 26 Aug 2019 15:25:08 +0800 Redis-复制功能探索 https://xiaohei.im/hugo-theme-pure/2019/11/replication/ Sat, 16 Nov 2019 14:24:40 +0800 https://xiaohei.im/hugo-theme-pure/2019/11/replication/ <p>之前对<code>redis</code> 的复制只有一点点了解,这次想要搞明白的是:如何实现的复制? 复制会遇到哪些问题(时延/一致性保证/网络故障时的处理)? 如何解决?高可用实现方案?</p> <p>文章有部分是直接翻译的 <a href="https://redis.io/topics/replication">https://redis.io/topics/replication</a></p> Redis-事件 https://xiaohei.im/hugo-theme-pure/2019/11/event/ Thu, 14 Nov 2019 15:01:45 +0800 https://xiaohei.im/hugo-theme-pure/2019/11/event/ <blockquote> <p><strong>事件驱动程序设计</strong>(英语:<strong>Event-driven programming</strong>)是一种电脑<a href="https://zh.wikipedia.org/wiki/程式設計">程序设计</a><a href="https://zh.wikipedia.org/wiki/模型">模型</a>。这种模型的程序运行流程是由用户的动作(如<a href="https://zh.wikipedia.org/wiki/滑鼠">鼠标</a>的按键,键盘的按键动作)或者是由其他程序的<a href="https://zh.wikipedia.org/wiki/訊息">消息</a>来决定的。相对于批处理程序设计(batch programming)而言,程序运行的流程是由<a href="https://zh.wikipedia.org/wiki/程式設計師">程序员</a>来决定。批量的程序设计在初级程序设计教学课程上是一种方式。然而,事件驱动程序设计这种设计模型是在<a href="https://zh.wikipedia.org/w/index.php?title=互動程序&amp;action=edit&amp;redlink=1">交互程序</a>(Interactive program)的情况下孕育而生的。 <a href="https://zh.wikipedia.org/wiki/事件驅動程式設計">&ndash;wikipedia</a></p> </blockquote> Redis-AOF持久化 https://xiaohei.im/hugo-theme-pure/2019/11/aof/ Fri, 08 Nov 2019 15:18:05 +0800 https://xiaohei.im/hugo-theme-pure/2019/11/aof/ <p><code>RDB</code> 和 <code>AOF</code> 区别在于: 前者保存数据库快照,持久化所有键值对,后者通过保存 <strong>写命令</strong> 保证数据库的状态.</p> Redis-RDB持久化 https://xiaohei.im/hugo-theme-pure/2019/11/rdb/ Wed, 06 Nov 2019 19:08:56 +0800 https://xiaohei.im/hugo-theme-pure/2019/11/rdb/ <p><code>redis</code> 为内存数据库,一旦服务器进程退出,服务器中的数据就不见了.所以内存中的数据需要持久化的硬盘中来保证可以在必要的时候进行故障恢复. <code>RDB</code> 就是 <code>redis</code> 提供的一种持久化方式.</p> Redis-数据库长什么样? https://xiaohei.im/hugo-theme-pure/2019/11/db/ Wed, 06 Nov 2019 11:00:32 +0800 https://xiaohei.im/hugo-theme-pure/2019/11/db/ Redis-万物皆「对象」 https://xiaohei.im/hugo-theme-pure/2019/11/obj/ Mon, 04 Nov 2019 18:56:15 +0800 https://xiaohei.im/hugo-theme-pure/2019/11/obj/ <p>Redis有很多种数据结构,但其并没有直接使用这些数据结构来构建这个 <code>NOSQL</code>, 而是通过 <code>对象系统</code> 完成了对所有数据结构的统一管理, 实现内存回收, 对象共享等特性~</p> Redis-分布式锁 https://xiaohei.im/hugo-theme-pure/2019/11/distributed-lock/ Sun, 03 Nov 2019 14:49:56 +0800 https://xiaohei.im/hugo-theme-pure/2019/11/distributed-lock/ <p>分布式锁有很多中实现(纯数据库,zookeeper,redis),纯数据库的受限于数据库性能,zk 可以保证加锁的顺序,是公平锁.Redis中的实现就是接下来要学习的.</p> Redis-数据结构 https://xiaohei.im/hugo-theme-pure/2019/10/data-structure/ Thu, 24 Oct 2019 09:59:11 +0800 https://xiaohei.im/hugo-theme-pure/2019/10/data-structure/ <p>系统学习 redis 相关的知识,从数据结构开始~</p> RabbitMQ-消息确认机制 https://xiaohei.im/hugo-theme-pure/2019/10/rabbitmq-ack-confirm/ Wed, 23 Oct 2019 11:22:13 +0800 https://xiaohei.im/hugo-theme-pure/2019/10/rabbitmq-ack-confirm/ <p>RabbitMQ在保证生产端与消费端的数据安全上,提供了消息确认的机制来保证. 消费端到 <code>broker</code> 端的确认常叫做<code>ack机制</code>, <code>broker</code> 到生产端常叫做<code>confirm</code>.</p> Hexo => Hugo主题移植记录 https://xiaohei.im/hugo-theme-pure/2019/09/hugo-theme-dev-note/ Mon, 23 Sep 2019 19:08:35 +0800 https://xiaohei.im/hugo-theme-pure/2019/09/hugo-theme-dev-note/ <blockquote> <p>最近使用<a href="https://gohugo.io/">Hugo</a>作为博客引擎后,闲不下来总想去找一些简单好看的主题.在<a href="https://themes.gohugo.io/">官方的主题列表</a>搜罗了一圈后,选择了<a href="https://github.com/joway/hugo-theme-yinyang">yinyang</a>,非常简单,但是用了一段时间还是想找个功能全点的,无意中瞄到了一个博主的博客,主题特别吸引我,但是是 <code>hexo</code> 平台的,搜了半天也没有人移植,就自己来吧~ 移植的过程中,遇到了挺多问题,也是这些问题慢慢的熟悉了hugo的模板结构.下面就来写一写自己遇到的问题~</p> </blockquote> RabbitMQ-消息分发机制 https://xiaohei.im/hugo-theme-pure/2019/09/rabbitmq-msg-distribution/ Sat, 21 Sep 2019 18:42:13 +0800 https://xiaohei.im/hugo-theme-pure/2019/09/rabbitmq-msg-distribution/ <p>rabbitmq有多种使用模式,在这里记录下不同模式的消息路由规则</p> RabbitMQ-入门及高可用集群部署 https://xiaohei.im/hugo-theme-pure/2019/09/rabbitmq-guide-and-ha-cluster/ Wed, 04 Sep 2019 14:42:13 +0800 https://xiaohei.im/hugo-theme-pure/2019/09/rabbitmq-guide-and-ha-cluster/ AMQP消息模型 https://xiaohei.im/hugo-theme-pure/2019/09/amqp-0-9-1-model-explained/ Tue, 03 Sep 2019 10:04:49 +0800 https://xiaohei.im/hugo-theme-pure/2019/09/amqp-0-9-1-model-explained/ Hystrix命令执行流程 https://xiaohei.im/hugo-theme-pure/2019/08/rxjava-in-hystrix/ Mon, 26 Aug 2019 15:25:08 +0800 https://xiaohei.im/hugo-theme-pure/2019/08/rxjava-in-hystrix/ RxJava入门 https://xiaohei.im/hugo-theme-pure/2019/08/rxjava-guide/ Wed, 21 Aug 2019 16:09:48 +0800 https://xiaohei.im/hugo-theme-pure/2019/08/rxjava-guide/ <blockquote> <p>本文基于 rxjava 1.x 版本</p> </blockquote> [LeetCode In Rust]189-Rotate Array https://xiaohei.im/hugo-theme-pure/2019/08/189-rotate-array/ Wed, 21 Aug 2019 15:29:34 +0800 https://xiaohei.im/hugo-theme-pure/2019/08/189-rotate-array/ [LeetCode In Rust]026-Remove Duplicates From Sorted Array https://xiaohei.im/hugo-theme-pure/2019/08/026-remove-duplicates-from-sorted-array/ Tue, 20 Aug 2019 15:54:47 +0800 https://xiaohei.im/hugo-theme-pure/2019/08/026-remove-duplicates-from-sorted-array/ [LeetCode In Rust]001-Two Sum https://xiaohei.im/hugo-theme-pure/2019/08/001-two-sum/ Fri, 16 Aug 2019 18:22:05 +0800 https://xiaohei.im/hugo-theme-pure/2019/08/001-two-sum/ Collections-Arraylist https://xiaohei.im/hugo-theme-pure/collections/arraylist/ Thu, 15 Aug 2019 13:19:18 +0800 https://xiaohei.im/hugo-theme-pure/collections/arraylist/ Collections-Hashmap https://xiaohei.im/hugo-theme-pure/collections/hashmap/ Thu, 15 Aug 2019 13:19:18 +0800 https://xiaohei.im/hugo-theme-pure/collections/hashmap/ Collections-Hashset https://xiaohei.im/hugo-theme-pure/collections/hashset/ Thu, 15 Aug 2019 13:19:18 +0800 https://xiaohei.im/hugo-theme-pure/collections/hashset/ Collections-Linkedhashmap https://xiaohei.im/hugo-theme-pure/collections/linkedhashmap/ Thu, 15 Aug 2019 13:19:18 +0800 https://xiaohei.im/hugo-theme-pure/collections/linkedhashmap/ Collections-Linkedlist https://xiaohei.im/hugo-theme-pure/collections/linkedlist/ Thu, 15 Aug 2019 13:19:18 +0800 https://xiaohei.im/hugo-theme-pure/collections/linkedlist/ Collections-Treemap https://xiaohei.im/hugo-theme-pure/collections/treemap/ Thu, 15 Aug 2019 13:19:18 +0800 https://xiaohei.im/hugo-theme-pure/collections/treemap/ Collections-Treeset https://xiaohei.im/hugo-theme-pure/collections/treeset/ Thu, 15 Aug 2019 13:19:18 +0800 https://xiaohei.im/hugo-theme-pure/collections/treeset/ 关于自己 https://xiaohei.im/hugo-theme-pure/about/ Thu, 15 Aug 2019 13:19:18 +0800 https://xiaohei.im/hugo-theme-pure/about/ xiaoheiAh~ 联系方式 github: (https://github.com/xiaoheiAh) gmail: xiaohei.zyx@gmail.com 节点推荐 -&gt; http://1t.click/aCyT 关注的大佬博客 面向信仰编程 真·面向信仰,硬核,主 go ,其他技术也很在行, kubernetes 贡献者.翻了翻他博客,就比我大一届,跪