apex / apex/up

Zero-overhead native Go support

オープン
#543 コメント 4 件 リアクション 25 件 担当者 0 名 GitHub で見る
Feature Request Performance
主要言語
Go
スター
8.8k
フォーク
383
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently there's a local proxy `Up Proxy -> Your App`, however with native Go we could now let you run native Go apps without the proxy, by embedding it, something like:

```
func main() {
up.Handle(h)
}
```

Honestly I think the latency benefits would be negligible, but it's worth investigating. Another benefit would be that you can shave ~3mb off your deploy size (and time).

TL;DR this keeps all of the Up proxy features, with none of the overhead.

- [ ] remove `Runtime`? decide how to signal native support
- [ ] add nicer public interface to `"github.com/apex/up/platform/lambda/proxy/golang"`
- [ ] add config to opt-in and/or detect (too much magic probably haha)
- [ ] add examples
- [ ] ensure shim is still used by default
- [ ] ensure `up start` respects this
- [ ] QA
- [ ] docs (mention missing relay features for logs etc)

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。