今天试用fnproject  之后自己有些思考,后面继续解决   1. 目前测试是强依赖 dockerhub 的,实际可能不是很方便 2. 如何与k8s .mesos.docker swarm  集成 3. security 如何做 4. 现有基础设施改造 5. 监控.服务追踪.日志的处理 6. 持续集成如何做(版本,构建,发布) 7. 如何与微服务进行集成 8. 对于长时间任务的处理待研究 9. 生产环境如何去使用(ha.function 访问)    接上面,几个问题的解决 1. 实际上支持…
今天试用fnproject  之后自己有些思考,后面继续解决   1. 目前测试是强依赖 dockerhub 的,实际可能不是很方便 2. 如何与k8s .mesos.docker swarm  集成 3. security 如何做 4. 现有基础设施改造 5. 监控.服务追踪.日志的处理 6. 持续集成如何做(版本,构建,发布) 7. 如何与微服务进行集成 8. 对于长时间任务的处理待研究 9. 生产环境如何去使用(ha.function 访问)         …
1. 预备环境 docker 17.05 docker hub account (测试可选) 2. 安装 curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh 3. 简单例子      a. 启动服务 fn start      b. go  项目例子        func.go package main import ( "fmt" ) func main() { fmt.Prin…
目前支持的扩展方式   Listeners - listen to API events such as a route getting updated and react accordingly. Middleware - a chain of middleware is executed before an API handler is called. Add API Endpoints - extend the default Fn API.   具体的官方介绍   Listeners L…
此为官方的参考说明   Running Fn in Production The QuickStart guide is intended to quickly get started and kick the tires. To run in production and be ready to scale, you need to use more production ready components. Put the Fn API behind a load balancer and l…
Applications At the root of everything are applications. In fn, an application is essentially a grouping of functions with path mappings (routes) to each function. For instance, consider the following URLs for the app called myapp: http://myapp.com/h…
  Creating Lambda Functions Creating Lambda functions is not much different than using regular functions, just use the lambda-node-4 runtime. fn init --runtime lambda-node-4 --name lambda-node Be sure the filename for your main handler is func.js. TO…
  Option 1 (recommended): Use the fn cli tool We recommend using the fn cli tool which will handle all of this for you. But if you'd like to dig in and customize your images, look at Option 2. Option 2: Build your own images Packaging a function has…
主要是文件 func.yaml func.json 详细说明如下: An example of a function file: name: fnproject/hello version: 0.0.1 type: sync memory: 128 config: key: value key2: value2 keyN: valueN headers: Content-Type: text/plain build: - make - make test expects: config: - n…
1. 简单介绍 所谓 hot  functions 实际上就是长时间运行的functions ,简单理解类似后台任务 2. fnproject  处理的方式 fnproject 使用 类似 http的处理方式 3. 配置使用    参考代码 package main import ( "bufio" "bytes" "fmt" "io/ioutil" "net/http" "os" &q…
具体部署还是比较简单的,以下为官方参考,只是有一个service type 为 loadBlancer 实际使用需要修改为NodePort  Prerequisite 1: working Kubernetes cluster (v1.7+), and a locally configured kubectl. Quickstart Steps Deploy Fn to the Kubernetes cluster: $ cd docs/operating/ $ kubectl create -…
1. 说明 fnproject 默认的docker registry 是 dockerhub 对于企业应用还是不太方便的 还好系统系统了配置参数方便我们进行配置,与开源harbor 进行集成 2. 使用    a. harbor 安装 此处略过,安装比较简单,参考github 文档即可    b. 配置说明 1. 构建 func.yml 参考配置 NAME: fn init - create a local func.yaml file USAGE: fn init [command optio…
  Message Queues A message queue is used to coordinate asynchronous function calls that run through Fn. We currently support the following message queues and they are passed in via the MQ_URL environment variable. For example: docker run -e "MQ_URL=r…
Databases We currently support the following databases and they are passed in via the DB_URL environment variable. For example: docker run -e "DB_URL=postgres://user:pass@localhost:6212/mydb" ... sqlite3 (default) URL: sqlite3:///functions/data/…
Env Variables Description Default values DB_URL The database URL to use in URL format. SeeDatabases for more information. sqlite3:///app/data/fn.db MQ_URL The message queue to use in URL format. SeeMessage Queues for more information. bolt:///app/dat…
1. 介绍 Fn is an event-driven, open source, functions-as-a-service compute platform that you can run anywhere. Some of it's key features: Write once Any language AWS Lambda format supported Run anywhere Public, private and hybrid cloud Import functions…
本文转贴自:http://www.zhangping.name/2010/08/28/pm-wireframes-design-tools/ ,尽管都是一些商业软件,但对设计的确非常有帮助. 天天和产品打交道,不时要做一些页面原型.离不开各种工具,工欲善其事必先利其器,好的工具软件可以大大提高工作效率,工具各有优劣,大家按需取之.原型设计工具我暂时把它分为两类,Web应用原型设计工具及软件应用原型设计工具.微软的visio就不说了: Web应用原型设计工具:先来看看这个几个:Axure RP .…
目录 解决 VS2019 中.net core WPF 暂时无法使用 Designer 的临时方法 安装 vs 2019 professional/enterprise版本 在vs的设置里,勾选.NET core下的"Use preview SDK" 使用vs自带的模板,选择其中的 .net core WPF 创建Project, 取名为"CoreHiWPF" 在刚创建的Solution中使用vs自带的模板,选择其中的.net framework WPF添加新的pr…
cncf landscape CNCF Cloud Native Interactive Landscape 1. App Definition and Development 1. Database Vitess:itess is a database clustering system for horizontal scaling of MySQL. Apache CarbonData:Apache CarbonData is an indexed columnar data format…
参考架构图 处理流程 使用gloo注册服务api 发现断电以及serverless 函数 更新graphql schema 在qloo的resolvermap 中连接schema定义的字段 特性 不用写代码设计graphql api 动态负载均衡 健康检查 opentracing 监控 客户端ssl 定义api(使用yaml文件) 可缩放 高性能 插件化架构 json 到 grpc 编码转换(envoy 的功劳) 服务发现只是kubernetes openshift consul ... 函数发…
funktion open source event based lambda programming for kubernetes 官方地址: funktion.fabric8.io serverless framework A framework - not a service github 地址 https://github.com/serverless openfaas 功能还是比较强大的,而且更新也比较频繁 https://github.com/openfaas/faas fn pro…
1. 官方介绍 OpenFaaS (Functions as a Service) is a framework for building serverless functions with Docker which has first class support for metrics. Any process can be packaged as a function enabling you to consume a range of web events without repetiti…
The term Serverless has become synonymous with AWS Lambda. Decoupling from AWS has two benefits; it avoids lock in and improves flexibility. The misnomer Serverless, is a set of techniques and technologies that abstract away the underlying hardware c…
CNCF Cloud Native Interactive Landscape 1. App Definition and Development 1. Database Vitess:itess is a database clustering system for horizontal scaling of MySQL. Apache CarbonData:Apache CarbonData is an indexed columnar data format for fast analyt…
jquery插件一般是这么干的: $.fn.插件名称 = function(){}, 把插件的名称加在.fn上,在源码里面实际上是扩展到构造函数的原型对象上,如果你没看过jquery的源代码,或者你曾经看过,但是不知道为什么把插件扩展到fn上,那么本篇文章就能解答你的疑惑.关于jquery插件开发方式,可以参考我的这篇文章:[js高手之路]jquery插件开发实战-选项卡详解 关于选项卡这个功能具体怎么做,不在这里详解,这个是入门级的功能,本文重在讨论插件开发的架构,扩展,以及参数设置. 如果你…
TPYBoard开发板自上市开售以来,受到了广大硬件及MicroPython爱好者的一致好评,许多人提出想试用开发板的申请.为此,TPYBoard特推出多款开发板免费试用活动,感兴趣的朋友抓紧申请吧! 此次试用活动共有三款产品可供选择,分别为:青少年编程TurnipBit开发板(市场价值99元).TPYBoardv102简约版(市场价值66元).TPYBoardv202(市场价值40元). 一.申请步骤 Step1.关注"MicroPython玩家汇"公众号 Step2.回复"…
该问题可能描述不清,建议你重新提问 为什么maven没有.m2文件 彼岸之恋°DD | 浏览 4793 次 问题未开放回答 2016-09-23 17:29 最佳答案 对于初学者在安装配置好maven之后,发现目录下不存在.m2文件夹,其原因是因为没有执行任何maven相关的命令,之后执行之后maven才会自动去创建.m2文件夹. 具体步骤如下: 1)在cmd命令下执行mvn help:system命令, 执行完成之后就会发现目录下自动创建了.m2文件夹 本回答由电脑网络分类达人 李孝忠推荐 评…
上一次接触 project euler 还是2011年的事情,做了前三道题,后来被第四题卡住了,前面几题的代码也没有保留下来. 今天试着暴力破解了一下,代码如下: (我大概是第 172,719 个解出这道题的人) program 4 A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.…
Understand 2.0是一款源代码阅读分析软件,功能强大.试用过一段时间后,感觉相当不错,确实可以大大提高代码阅读效率.由于Understand功能十分强大,本文不可能详尽地介绍它的所有功能,所以只列举本人认为比较重要或有特色的功能,以做抛砖引玉之举. Understand 2.0可以从http://www.scitools.com/下载到,安装后可以试用15天. 使用Understand阅读代码前,要先创建一个Project,然后把所有的源代码文件加入到这个Project里.这里我创建了…
2015年4月29日,微软在Build 2015大会上发布了一个震撼人心的项目: Project Oxford, 可以帮助直接实现图像理解.人脸识别.语音识别.语音合成等功能.虽然说这是号称研究院的项目,不过人脸识别,图像分类等等功能早已经在开源社区是一个比较成熟的东西了,OpenCV里也有很多成熟的算法,不过能够被直接用在公有云上使用,也算是帮助广大创业的小伙伴们实现更多强大的功能.正好遇到5/1休息,IT码农的本色又展现了出来,让我来看一些到底有哪些有趣的功能可以玩. Oxford支持的功能…