Giter Club home page Giter Club logo

Comments (12)

czy88840616 avatar czy88840616 commented on May 17, 2024 4

本周提流程。

from midway.

czy88840616 avatar czy88840616 commented on May 17, 2024 2

我们现在主要在做函数计算这块。正在内部使用中。

from midway.

czy88840616 avatar czy88840616 commented on May 17, 2024

@kurten @Lellansin

from midway.

ZQun avatar ZQun commented on May 17, 2024

eggjs/egg#3352 (comment)

from midway.

Akimotorakiyu avatar Akimotorakiyu commented on May 17, 2024

midway-serverless很棒棒哦,那么问题来了,midway-serverless和函数计算怎么选择或者处理好呢?

from midway.

czy88840616 avatar czy88840616 commented on May 17, 2024

midway-serverless 可以看成一个 serverless framework,解决的是不同平台希望能有统一的开发体验的问题,也方便常见的应用迁移到 FaaS 体系。

from midway.

Akimotorakiyu avatar Akimotorakiyu commented on May 17, 2024

还没方案吗?凉了吗?

from midway.

Akimotorakiyu avatar Akimotorakiyu commented on May 17, 2024

焦急又耐心地等待

from midway.

ZQun avatar ZQun commented on May 17, 2024

@czy88840616 函数计算大概什么时候上线?

from midway.

czy88840616 avatar czy88840616 commented on May 17, 2024

现在的问题在于内部方案和社区方案并没有特别一致。简单来说现在阿里云的fc是没法自定义运行时的,只是开放了函数部分,如果要一致的话,这样很多的逻辑就得从运行时移动到用户代码中,感觉不是特别好。

为了和 midway 系列的注入用法,以及跨模块的复用,我们目前还是希望 fc 的写法是 ts + 装饰器的用法,通过不同的生成器来屏蔽入口的差异,这样可以部署到 fc/amazon 等不同的平台上。

举个例子:

我们会把 fc 的参数进行一些包装。

exports.handler = (event, callback) => {
}

变成类似下面的形式。

@func()
export class MainFunction {

  @inject()
  ctx;

  async handler(event) {

  }
}

就目前来说,集团内的场景趋于稳定,但是社区的变数还是比较多,如何和各方的工具链协作也是一个问题,不过 就 midway-faas 本身的代码变化不大,大概也就 150 行代码,非常简单。。

from midway.

ZQun avatar ZQun commented on May 17, 2024

@czy88840616 可以先开源一部分,在慢慢升级吗?

from midway.

danielsss avatar danielsss commented on May 17, 2024

黄花菜都凉透了~ @czy88840616 赶紧申请开源啊!

from midway.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.