Replies: 13 comments 13 replies
-
|
Beta Was this translation helpful? Give feedback.
-
|
未来部署一个应用到函数计算可能是这样的 Yaml: # 规范版本,【必填】
edition: 3.0.0/1.0.0
extend: demo.yaml # 模板继承
# 基础信息,与应用中心联动,如果无需同步到应用中心,可【选填】
name: application_name # 应用名称
description: application_description # 应用描述
muti_env: # 应用环境
name: env_name # 应用环境名称
type: dev/test/prod # 应用环境类别
# 全局密钥,【选填】
access: 密钥信息
# 部署前验证 Yaml 格式,默认执行 s verify,如果失败了默认停止,【选填】
validation: true
# 全局 Action,【选填】
actions:
pre-deploy: # xxx操作之前
- component: fc build --use-docker --codeUri ./code
- plugin: zipCode
args:
codeUri: ./code
targetUri: ./upload.zip
# 全局变量,【选填】
vars:
region: cn-hangzhou
# 具体的业务模块
projects:
service_anycodes:
component: fc-service # 组件名称
props: # 业务逻辑具体的属性
region: ${vars.region}
name: anycodes
description: 这是 anycodes service
service_anyenv:
component: fc-service # 组件名称
props: # 业务逻辑具体的属性
name: anyenv
description: 这是 anyenv service
logConfig: auto
function_server:
component: fc-function # 组件名称
props: # 业务逻辑具体的属性,外部的变量用()获取,呢不的变量用.获取,增加json参数,可以将外部字符串变为json格式
region: ${vars.region}
serviceName: anyenv
name: server
description: 这是 anyenv server
runtime: python3.9
codeUri: ./upload.zip
handler: index.test
function_start:
component: fc-function # 组件名称
props: # 业务逻辑具体的属性,外部的变量用()获取,呢不的变量用.获取,增加json参数,可以将外部字符串变为json格式
region: ${vars.region}
serviceName: anycodes
name: start-function
description: 这是 anycodes start_function
runtime: python3.9
codeUri: ./upload.zip
handler: index.demo
function_callback:
component: fc-function # 组件名称
props: # 业务逻辑具体的属性,外部的变量用()获取,呢不的变量用.获取,增加json参数,可以将外部字符串变为json格式
region: ${vars.region}
serviceName: anycodes
name: oss-callback
description: 这是 anycodes start_function
runtime: custom
codeUri: ./oss_code整体:
|
Beta Was this translation helpful? Give feedback.
-
|
name 的字段代表是应用中心的名称,这个字段是否是必填?因为有些应用在本地无需 和cloud应用中心对应上 |
Beta Was this translation helpful? Give feedback.
-
|
这里主要在本地和应用中心感知的基础信息是 用户的身份以及感知的 |
Beta Was this translation helpful? Give feedback.
-
|
规范中 涉及全局的内容有vars, actions, access, 考虑是否统一收敛到类似 global的属性中,整体规范从顶层设计上收敛为基础信息, 全局引用 以及 project(或者application),另外本次设计希望引入全局插件, 用来处理全局状态设置以及安全层面的问题。 |
Beta Was this translation helpful? Give feedback.
-
# 全局 Action倾向如下描述
# 先聚焦到action行为,而不是具体条件,这样一个action更容易被复用
actions:
- run: make clean
phases:
- pre-deploy
- component: fc alias publish
phases:
- success-deploy
- plugin: dingTalkNotify
args: xxx
phases:
- pre-deploy
- success-deploy
- fail-deploy
|
Beta Was this translation helpful? Give feedback.
-
|
直接透出应用中心特性不太合适,破坏了no-vendor-lock-in原则。可以考虑两个思路
remote:
backend: alicloud/serverless #阿里云应用中心
args:
name: application_name # 应用名称
description: application_description # 应用描述
environment: # 应用环境
name: env_name # 应用环境名称
type: dev/test/prod # 应用环境类别
|
Beta Was this translation helpful? Give feedback.
-
|
我的idea是能不能实现一个接口,可以实时的在不同的无感计算框架之间切换,就比如一个应用的前几个函数在阿里云计算,后面的函数都在华为云上计算,实现函数粒度的最优化。 |
Beta Was this translation helpful? Give feedback.
-
|
我们在使用阿里云函数计算应用时遇到问题, 但不知道是否是 Serverless Devs 造成的. 问题是: 在 actions->pre-deploy 中, |
Beta Was this translation helpful? Give feedback.
-
|
我有个问题,现在的 repo 跟功能太多难以管理了,我一段时间不接触之后感觉很难再参与进来了 |
Beta Was this translation helpful? Give feedback.
-
|
我这边还发现了另外两个问题.
例如: |
Beta Was this translation helpful? Give feedback.
-
|
是否考虑用其他编程语言开发 s v3 ? Rust ? Go ? |
Beta Was this translation helpful? Give feedback.
-
|
暂时没有计划哈
发自我的iPhone
…------------------ 原始邮件 ------------------
发件人: 邓超 ***@***.***>
发送时间: 2023年8月18日 16:47
收件人: Serverless-Devs/Serverless-Devs ***@***.***>
抄送: mamba ***@***.***>, Comment ***@***.***>
主题: Re: [Serverless-Devs/Serverless-Devs] 【Serverless Devs 3.0】工具链升级探索讨论 (Discussion #651)
是否考虑用其他编程语言开发 s v3 ? Rust ? Go ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
背景
随着时间发展,Serverless Devs 从诞生至今已经走过了三年的时间,三年期间,我们收获到了很多小伙伴们的支持和反馈,我们也在不断努力的自我批评,自我探索:什么样的工具才是一个好用的工具,什么样的工具才是 Serverless 领域好用的工具。
在做 Serverless Devs 之前,自己一直想要做一个具有足够灵活度又有足够好体验的开发者工具,但是往往这两者又回存在“一定的矛盾”,在过去的三年时间,我们也逐渐的认识到现有版本的不足:
所以在2023年,打算联合社区一起对 Serverless Devs 进行一次大规模升级,即 Serverless Devs 3.0。
设想中,3.0的特点:
重大变更:
命令
设想中的命令:
新增命令逻辑:
Yaml 更新
以函数计算和应用引擎为例,一个完整的函数配置:
顺序逻辑
命令行配置 > Yaml Project 配置 > Yaml 全局配置 > 全局配置 > 环境变量配置 > 默认配置
Beta Was this translation helpful? Give feedback.
All reactions