AsyncAPI and CloudEvents】的更多相关文章

一篇比较AsyncAPI与CloudEvents的文章,很不错,原文连接:https://www.asyncapi.com/blog/asyncapi-cloud-events/ I’ve been receiving the same question for a long time now: Should I use CloudEvents or AsyncAPI? — And my response has always been the same: it depends! There i…
https://www.asyncapi.com Introduction AsyncAPI provides a specification that allows you to define Message-Driven APIs in a machine-readable format. It’s protocol-agnostic, so you can use it for APIs that work over MQTT, AMQP, WebSockets, STOMP, etc.…
cloudevents 目前官方提供了不同语言的sdk,以下是js 的简单学习试用,从目前来说更新不是很好 clone 代码 git clone https://github.com/cloudevents/sdk-javascript.git demo 代码运行 cd express-ex yarn yarn start 测试 demo 的readme 已经提供了比较全的操作说明,我们可以结合这个学习指南 简单json 格式 curl -X POST \ -d'@../payload/v03/…
AsyncAPI 类似openapi 也提供了一些周边工具 editor 类似openapi 的,但是目前官方已经不推荐使用了,推荐使用playground,以下是构建一个容器镜像 clone 代码 git clone https://github.com/asyncapi/editor.git 修改dockerfile 默认的制作出来的镜像太大了   FROM node:9-alpine ​ RUN npm config set registry https://registry.npm.ta…
AsyncAPI 提供了类似openapi的代码生成,以下demo,来自官方,只是目前官方的generator有些问题以下 同时说明运行中的一些问题 环境准备 主要是安装依赖组件 npm install -g asyncapi-generator mqtt 定义AsyncAPI 稍有改动,主要是channel(mqtt 的topic) yaml 文件 asyncapi: '2.0.0' info: title: Streetlights API version: '1.0.0' descript…
asyncapi 是可以用来创建异步机器可读定义api的指南,我们可以用来创建事件驱动的架构. 说明 asyncapi 的定义类似openapi,目前指南版本为2.0,很值得学习下 参考资料 https://www.asyncapi.org/docs/getting-started/ https://github.com/asyncapi/asyncapi…
cloudevents 是由cncf 组织管理的一个通用event描述指南 特性: 一致性 可理解性 可移植性 说明 cloudevents 不仅提供了核心描述,同时也包含了不同协议的指南说明(http,json,kafka,amqp...),当前也包含了一些语言的 实现(golang,python,csharp,javascript),很值得在项目中试用下 参考资料 https://cloudevents.io/ https://github.com/cloudevents/spec…
作者:吕大豹 网址:http://www.cnblogs.com/lvdabao/p/js-modules-develop.html 这是一篇关于js模块化历程的长长的流水账,记录js模块化思想的诞生与变迁,展望ES6模块化标准的未来.经历过这段历史的人或许会感到沧桑,没经历过的人也应该知道这段历史. 无模块时代 在ajax还未提出之前,js还只是一种“玩具语言”,由Brendan Eich花了不到十天时间发明,用来在网页上进行表单校验.实现简单的动画效果等等,你可以回想一下那个网页上到处有公告…
在最近的salesforce实施项目中应用到Bulk API来做数据接口.顺便把实际应用的例子写下来.希望对做salesforce接口的朋友有借鉴作用. 一 参考网络牛人写好的Demo. 下载地址:https://github.com/lfreeland/Salesforce-Bulk-API-Starter 注意事项: 1)  目前的salesforce 禁用了TLS1.0,所以这个代码要加上 System.Net.ServicePointManager.SecurityProtocol =…
Boost - 从Coroutine2 到Fiber 协程引子 我开始一直搞不懂协程是什么,网上搜一搜,(尤其是Golang的goroutine)感觉从概念上听起来有点像线程池,尤其是类似Java的ExcutorService类似的东西 package helloworld; import java.util.Calendar; import java.util.Date; import java.util.concurrent.Callable; import java.util.concur…