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) 编辑

导航