上一页 1 ··· 96 97 98 99 100 101 102 103 104 ··· 122 下一页

2018年6月12日

nats 学习 集群ha 配置

摘要: nats 的ha 是一个mesh 的结构,有两个主要的参数 clusters routers 启动三分节点(单机) 共享变量 SERVERS=nats://127.0.0.1:6222,nats://127.0.0.1:6223,nats://127.0.0.1:6224 node a 开启了监控 阅读全文

posted @ 2018-06-12 09:06 荣锋亮 阅读(901) 评论(0) 推荐(0) 编辑

2018年6月11日

yarn import 使用package-lock.json

摘要: yarn 1.7(目前最新的版本)支持npm 的package-lock.json 了 环境准备 安装更新yarn sudo npm install -g yarn 查看版本 yarn version npm基本项目初始化 npm 项目初始化 npm install -y npm install s 阅读全文

posted @ 2018-06-11 15:22 荣锋亮 阅读(778) 评论(1) 推荐(1) 编辑

nats 学习 request/reply 模式基本使用

摘要: nats 一个云原生的消息系统,使用简单,客户端丰富,支持的模式是pub/sub 但是集成比较灵活,可以支持loadblance, request/reply pub/sub 代码演示的是request (类似rabbitmq 的rpc) 基本代码 需要首先安装并启动nats(比较简单) reque 阅读全文

posted @ 2018-06-11 14:38 荣锋亮 阅读(3855) 评论(0) 推荐(0) 编辑

2018年6月8日

便捷的Jenkins jswidgets

摘要: 很多时候我们在构建完成之后需要查看构建的状态,类似github 中的build Status 插件安装 搜索插件 使用 目前好像只支持自由项目的构建 代码集成 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta n 阅读全文

posted @ 2018-06-08 13:15 荣锋亮 阅读(193) 评论(0) 推荐(0) 编辑

2018年6月7日

deno学习二 基本代码

摘要: deno 介绍是安全的ts 运行时 简单的代码 使用js(app.js) console.log("demoapp") 输出 dalongdemo 使用ts(app.ts) console.log("demoapp") 输出 dalongdemo 导入模块 代码目录结构 ├── rong.js └─ 阅读全文

posted @ 2018-06-07 22:01 荣锋亮 阅读(718) 评论(0) 推荐(0) 编辑

deno学习一 安装试用&&几个问题解决

摘要: 基本的依赖可以参考github 我的环境是centos 7 基本安装 需要golang 以及yarn安装 Protobuf 3 这是官方的方式,实际可以变通下 cd ~ wget https://github.com/google/protobuf/releases/download/v3.1.0/ 阅读全文

posted @ 2018-06-07 16:52 荣锋亮 阅读(2001) 评论(0) 推荐(0) 编辑

2018年6月6日

graphql 文档 docker 镜像

摘要: 因为一些原因 graphql 的官方文档无法查看,后者查看不能是方便,所以在官方github 的文档基础上添加了容器构建, 方便进行查看,对于公司内部使用学习会比较好 原理 很简单,openresty + docker + docker-compose 参考项目地址 https://github.c 阅读全文

posted @ 2018-06-06 13:28 荣锋亮 阅读(271) 评论(0) 推荐(0) 编辑

2018年6月5日

office web app server 文件预览部署&& wopi 集成使用

摘要: 对于需要进行office 套件文档预览的时候大部分大家使用的是插件,或者类似的,解决方案,微软已经为我们提供了比较好的解决 方案 office web app server (目前名称是office online server) 部署安装 我安装使用的是windows server 2012 r2 阅读全文

posted @ 2018-06-05 11:06 荣锋亮 阅读(780) 评论(0) 推荐(0) 编辑

2018年6月4日

chaos-engineering 的一些开源工具

摘要: Chaos Monkey - A resiliency tool that helps applications tolerate random instance failures. The Simian Army - A suite of tools for keeping your cloud 阅读全文

posted @ 2018-06-04 09:25 荣锋亮 阅读(2548) 评论(1) 推荐(0) 编辑

2018年6月2日

ballerina 学习二十五 项目docker 部署&& 运行

摘要: ballerina 官方提供了docker 的runtime,还是比较方便的 基本项目创建 使用cli创建项目 按照提示操作就行 ballerina init -i 项目结构 添加了dockerfile 以及docker-compose 简单http 服务 ├── Ballerina.toml ├─ 阅读全文

posted @ 2018-06-02 22:27 荣锋亮 阅读(313) 评论(0) 推荐(0) 编辑

ballerina 学习二十四 监控ballerina

摘要: ballerina 服务的监控还是比较方便的,以及集成了Prometheus Grafana Jaeger Elastic Stack 监控服务监控的集成 主要包含以下几个步骤 a. 安装docker Prometheus Grafana Jaeger Elastic Stack b. 创建简单ba 阅读全文

posted @ 2018-06-02 20:57 荣锋亮 阅读(259) 评论(0) 推荐(0) 编辑

ballerina 学习二十三 扩展ballerina

摘要: 扩展ballerina 目前有三种方式: 扩展client connector的包 (数据库访问,基础设施,api) 扩展server listenner 绑定为不同的协议 添加新的注解到ballerina 源码进行编译并修改运行软件包 创建client connector client conne 阅读全文

posted @ 2018-06-02 20:56 荣锋亮 阅读(250) 评论(0) 推荐(0) 编辑

2018年6月1日

ballerina 学习二十二 弹性服务

摘要: 主要包含断路器模式,负载均衡模式,故障转移,重试 Circuit Breaker 参考代码 import ballerina/http; import ballerina/log; import ballerina/runtime; endpoint http:Client backendClien 阅读全文

posted @ 2018-06-01 22:12 荣锋亮 阅读(212) 评论(0) 推荐(0) 编辑

ballerina 学习二十一 http2

摘要: ballerina 支持http2 协议,包含server push http2 协议 参考代码 import ballerina/http; import ballerina/log;endpoint http:Client http2serviceClientEP { url: "http:// 阅读全文

posted @ 2018-06-01 21:52 荣锋亮 阅读(170) 评论(0) 推荐(0) 编辑

ballerina 学习二十 http/https

摘要: 提供http && https server && client 访问功能 client endpoint 说白了就是http client 参考代码 import ballerina/http; import ballerina/log;endpoint http:Client clientEnd 阅读全文

posted @ 2018-06-01 21:51 荣锋亮 阅读(257) 评论(0) 推荐(0) 编辑

ballerina 学习十九 安全编程

摘要: ballerina 内部提供了几种常用的安全开发模型,token 认证(jwt) basic auth jwt 安全 参考代码 import ballerina/http; http:AuthProvider jwtAuthProvider = { scheme:"jwt", issuer:"bal 阅读全文

posted @ 2018-06-01 16:20 荣锋亮 阅读(228) 评论(0) 推荐(0) 编辑

ballerina 学习十八 事务编程

摘要: 事务在分布式开发,以及微服务开发中是比较重要的 ballerina 支持 本地事务、xa 事务、分布式事务 ,但是具体的服务实现起来需要按照ballerian 的事务模型 infection agreement 基本事务使用(本地事务) 参考代码(数据库) import ballerina/mysq 阅读全文

posted @ 2018-06-01 13:51 荣锋亮 阅读(295) 评论(0) 推荐(0) 编辑

2018年5月31日

ballerina 学习十七 多线程编程

摘要: 并发&&多线程开发对于日常的处理是比较重要的,ballerina 支持的模式有work fork/join async lock 基本workers 参考代码 import ballerina/io; function main(string… args) { worker first { io:p 阅读全文

posted @ 2018-05-31 09:40 荣锋亮 阅读(270) 评论(0) 推荐(0) 编辑

2018年5月28日

nexus helm proxy 集成&&问题解决

摘要: 对于使用kubernetes 进行开发的人员来说helm是很方便的 构建nexus helm plugin git clone https://github.com/sonatype-nexus-community/nexus-repository-helm.git mvn clean packag 阅读全文

posted @ 2018-05-28 19:59 荣锋亮 阅读(1467) 评论(0) 推荐(0) 编辑

nexus yum 私服集成

摘要: nexus 集成了 yum 私服使用起来还是比较简单的 配置 yum proxy 实际使用我们可能需要配置centos 以及epel 的源 centos可以用http://mirror.centos.org/centos/ epel 用http://mirrors.aliyun.com/epel/ 阅读全文

posted @ 2018-05-28 14:35 荣锋亮 阅读(2640) 评论(0) 推荐(0) 编辑

nexus bower 集成使用

摘要: 创建nexus bower proxy host 比较简单,如下图: 安装bower && bower-nexus resolver npm install -g bower-nexus3-resolver or npm install bower-nexus3-resolver --dev npm 阅读全文

posted @ 2018-05-28 14:13 荣锋亮 阅读(467) 评论(0) 推荐(0) 编辑

nexus docker 私有镜像处理

摘要: 新版本的nexus 可以进行docker 镜像的存储处理 配置私有镜像(host 模式) 修改docker 非安全镜像处理 { "registry-mirrors": ["http://099430a4.m.daocloud.io"], "insecure-registries":["hostip: 阅读全文

posted @ 2018-05-28 10:52 荣锋亮 阅读(364) 评论(0) 推荐(0) 编辑

nexus 使用Raw Repositories 进行maven site 发布

摘要: 实际项目中我们可能需要进行maven 项目的site 文档发布,一般的处理是生成之后,然后在进行发布到一个静态 服务器进行页面访问,nexus3 提供了一个Raw Repositories 很方便可以直接帮我们搞定问题 创建Raw Repositories 我选择了s3 minio 做为存储,实际上 阅读全文

posted @ 2018-05-28 09:41 荣锋亮 阅读(2598) 评论(0) 推荐(0) 编辑

2018年5月26日

nexus && minio s3 存储私有镜像

摘要: 对于新版本的nexus 已经支持s3 存储了(3.12),但是企业内部可能还是需要使用私有部署的 还好我们有minio,具体的介绍就不说了 minio 项目运行 参考项目: https://github.com/rongfengliang/mino-thumbor-openresty 尽管里面的功能 阅读全文

posted @ 2018-05-26 22:02 荣锋亮 阅读(2143) 评论(0) 推荐(0) 编辑

2018年5月21日

spring boot 使用spring.resources.static-locations 分离系统模版&&资源文件

摘要: 方便我们将资源配置以及模版&&静态文件分离出来,而不是打包在一起,比如以下的一个demo 参考配置: server.port=8006 spring.application.name=appdemo spring.resources.static-locations=pdf spring.resou 阅读全文

posted @ 2018-05-21 22:21 荣锋亮 阅读(2001) 评论(0) 推荐(0) 编辑

Tencent Server Web 安装试用

摘要: Tencent Server Web 安装试用 私有环境搭建,使用docker-compose 进行memcache 安装 参考github 代码 https://github.com/rongfengliang/tsw-docker-compose 启动&&运行 docker-compose 运行 阅读全文

posted @ 2018-05-21 10:30 荣锋亮 阅读(275) 评论(0) 推荐(0) 编辑

docker could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network

摘要: 原因: 无法进行网络分配了 解决方法: // 所有的网络 docker network ls // 删除不用的,腾出多余的 docker network rm <networkname> 阅读全文

posted @ 2018-05-21 09:54 荣锋亮 阅读(2036) 评论(0) 推荐(0) 编辑

Tencent Server Web(TSW) 腾讯开源的nodejs 基础设施

摘要: Tencent Server Web(TSW),是一套面向WEB前端开发者,以提升问题定位效率为初衷,提供染色抓包、全息日志和异常发现的Node.js基础设施。TSW关注业务的运维监控能力,适用于http、websocket协议的业务场景,可无缝与即有项目进行整合。支持公有云、私有云和本地部署。 染 阅读全文

posted @ 2018-05-21 09:07 荣锋亮 阅读(1638) 评论(0) 推荐(0) 编辑

2018年5月20日

Stream Processing 101: From SQL to Streaming SQL in 10 Minutes

摘要: 原文:https://wso2.com/library/articles/2018/02/stream-processing-101-from-sql-to-streaming-sql-in-ten-minutes/ We have entered an era where competitive 阅读全文

posted @ 2018-05-20 23:06 荣锋亮 阅读(393) 评论(0) 推荐(0) 编辑

13 Stream Processing Patterns for building Streaming and Realtime Applications

摘要: 原文:https://iwringer.wordpress.com/2015/08/03/patterns-for-streaming-realtime-analytics/ Introduction More and more use cases, we want to react to data 阅读全文

posted @ 2018-05-20 23:04 荣锋亮 阅读(285) 评论(0) 推荐(0) 编辑

Siddhi cep java 集成简单使用

摘要: Siddhi 是一个开源的cep (Complex Event Processing)类库,有一个明显的例子是uber 的事件处理,具体可以google 几张参考cep 以及siddhi 图 java 集成使用(使用maven) 代码 maven <?xml version="1.0" encodi 阅读全文

posted @ 2018-05-20 22:37 荣锋亮 阅读(2182) 评论(0) 推荐(0) 编辑

2018年5月19日

ballerina 学习十六 错误&&异常处理

摘要: ballerina 的error 处理和elxiir 以及rust 比较类似使用模式匹配,但是他的 error lifting 还是比较方便的 同时check 也挺好,异常处理没什么特殊的 throw 以及 throw catch finally 简单例子 error-handling import 阅读全文

posted @ 2018-05-19 23:08 荣锋亮 阅读(212) 评论(0) 推荐(0) 编辑

ballerina 学习十五 控制流

摘要: ballerina 的控制流没有什么特殊,只是相比一般语言多了一个模式匹配的操作match ,实际上其他语言(erlang elixir rust 中的模式匹配是很强大的) 简单例子 if/else import ballerina/io; function main(string… args) { 阅读全文

posted @ 2018-05-19 22:48 荣锋亮 阅读(195) 评论(0) 推荐(0) 编辑

ballerina 学习十四 values && types

摘要: ballerina 包含的数据类型有string int map array record boolean ojbect function table tuple any 简单说明 数据类型和其他语言相比没有设么特殊的,因为是借鉴了好多中语言其中的table 还是不错(C# datatable) 直 阅读全文

posted @ 2018-05-19 22:35 荣锋亮 阅读(246) 评论(0) 推荐(0) 编辑

ballerina 学习十三 函数&&documentation

摘要: ballerina 函数和其他语言一样的,可以实现重用 简单例子 代码 import ballerina/io; documentation { `User` is a user defined object F{{name}} This is the description for the Use 阅读全文

posted @ 2018-05-19 22:18 荣锋亮 阅读(164) 评论(0) 推荐(0) 编辑

ballerina 学习十二 变量

摘要: ballerina 有两种方式进行变量的定义,类型加上名称以及初始值。,使用var 关键字 简单例子 代码 import ballerina/io; // 全局public 变量,使用类型定义 public string user="dalong"; function appdemo (string 阅读全文

posted @ 2018-05-19 21:25 荣锋亮 阅读(154) 评论(0) 推荐(0) 编辑

ballerina 学习十一 Packages

摘要: ballerina 的包还是比较简单的,实际上就是对于源码文件集合的管理,同时我们可以添加别名,同时可以进行 其他包的引用 import 简单例子 代码 import ballerina/math; import ballerina/io as console; function main(stri 阅读全文

posted @ 2018-05-19 21:14 荣锋亮 阅读(152) 评论(0) 推荐(0) 编辑

ballerina 学习十 streams

摘要: ballerina 的streams 使用的是siddhi complex event processing 引擎处理,可以包含的语法有 projection filtering windows join pattern 简单例子 参考代码 import ballerina/io; import b 阅读全文

posted @ 2018-05-19 20:05 荣锋亮 阅读(279) 评论(0) 推荐(0) 编辑

2018年5月18日

ballerina 学习九 Client endpoints

摘要: 说白了就是连接外部服务的,可以是http jms websocket 。。。。 简单例子 代码 import ballerina/http; import ballerina/log; endpoint http:Client baiduEP { url:"http://www.baidu.com" 阅读全文

posted @ 2018-05-18 14:38 荣锋亮 阅读(312) 评论(0) 推荐(0) 编辑

ballerina 学习八 Parallel( 并行处理)

摘要: 实际上就是并行进行任务的处理 简单例子 代码 import ballerina/io; function main (string… args) { worker first { io:println("first"); } worker second { io:println("second"); 阅读全文

posted @ 2018-05-18 13:51 荣锋亮 阅读(183) 评论(0) 推荐(0) 编辑

上一页 1 ··· 96 97 98 99 100 101 102 103 104 ··· 122 下一页

导航