随笔分类 -  云运维&&云架构

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 荣锋亮 阅读(262) 评论(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 荣锋亮 阅读(230) 评论(0) 推荐(0) 编辑

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

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

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 荣锋亮 阅读(272) 评论(0) 推荐(0) 编辑

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 荣锋亮 阅读(1526) 评论(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 荣锋亮 阅读(2646) 评论(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 荣锋亮 阅读(474) 评论(0) 推荐(0) 编辑

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

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

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

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

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

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

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

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

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 荣锋亮 阅读(397) 评论(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 荣锋亮 阅读(293) 评论(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 荣锋亮 阅读(2252) 评论(0) 推荐(0) 编辑

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

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

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

posted @ 2018-05-19 22:48 荣锋亮 阅读(197) 评论(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 荣锋亮 阅读(248) 评论(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 荣锋亮 阅读(166) 评论(0) 推荐(0) 编辑

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

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

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

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

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示