15 Star 98 Fork 14

百度开源/incubator-Teaclave

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
permalink
/docs/codebase/executor

Function Executors

Function executor is one of the core component in a FaaS platform to provide execution runtime for running user-defined functions. In Teaclave, we aim to provide safe, secure and versatile function executors, which can guarantee the confidentiality of security-sensitive data during computation, and also support functions written in different languages. In addition, we are working hard to achieve better security guarantees such as memory safety.

In Teaclave, there are two executors to native and Python functions.

  • Builtin Executor: There are many useful built-in functions which are statically compiled with Teaclave. Normally, these built-in functions are implemented in Rust, and can provide better (native) performance. The Builtin executor is to dispatch function invocation requests to corresponding built-in function implementations.
  • MesaPy Executor: The MesaPy executor provides a Python interpreter in SGX. User-defined Python functions can be executed in the MesaPy executor. The executor also provides interfaces to fetch and store data through the runtime.

To add a new executor, you can implement the TeaclaveExecutor trait (basically implement the execute function). Then, register the executor in the Teaclave worker. At last, the execution service will dispatch functions to the specific executor.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/baidu/incubator-teaclave.git
git@gitee.com:baidu/incubator-teaclave.git
baidu
incubator-teaclave
incubator-Teaclave
master

搜索帮助