2017年11月20日

Nchan 实时消息 安全配置

摘要: 备注: 即时消息的安全对于我们来说是比较重要的,作者在设计Nchan 的时候已经考虑了 a. nchan_authorize_request (Hooks and Callbacks)可以集成后端服务 配置如下: upstream my_app { server 127.0.0.1:8080; } 阅读全文

posted @ 2017-11-20 19:20 荣锋亮 阅读(462) 评论(0) 推荐(0) 编辑

Nchan 实时消息内置变量

摘要: 以下参考官方文档: $nchan_channel_idThe channel id extracted from a publisher or subscriber location request. For multiplexed locations, this is the first chan 阅读全文

posted @ 2017-11-20 19:20 荣锋亮 阅读(300) 评论(0) 推荐(0) 编辑

Nchan 实时消息ha 配置

摘要: 备注: Nchan 的数据持久化,以及ha 都是通过redis实现的,如果要做到无单点可以使用redis cluster 同对于Nchan server 进行多副本 1. 安装 下载nginx or openresty 源码同时下载Nchan 源码进行编译打包即可 2. 简单sub/pub 配置 l 阅读全文

posted @ 2017-11-20 19:19 荣锋亮 阅读(928) 评论(0) 推荐(1) 编辑

Nchan 安装试用(openresty 同时支持)

摘要: 备注: 使用nginx最新的源码包(nginx-1.13.6),以及源码安装 1. 下载源码包(nginx+ Nchan) https://nginx.org/download/nginx-1.13.6.tar.gz wget https://github.com/slact/nchan/archi 阅读全文

posted @ 2017-11-20 14:28 荣锋亮 阅读(1064) 评论(0) 推荐(0) 编辑

Nchan nginx 支持的开源消息推送模块

摘要: 1. 介绍 // 官方说明 Nchan is a scalable, flexible pub/sub server for the modern web, built as a module for the Nginx web server. It can be configured as a s 阅读全文

posted @ 2017-11-20 13:13 荣锋亮 阅读(774) 评论(0) 推荐(0) 编辑

toxiproxy 安装试用

摘要: 备注: 实际上是一个代理工具,但是又不是简单的进行代理(tcp,可以配置策略,toxics 实现延迟,模拟故障, 对于这个大家可能了解的就是netflix 公司的chaos monkey,实际的使用大家可以参考相关文章,本次只是 对于toxiproxy 的简单安装试用,同时这个工具可以放到大家持续集 阅读全文

posted @ 2017-11-20 09:53 荣锋亮 阅读(1500) 评论(0) 推荐(0) 编辑

导航