目前我的前端代碼(SvelteKit)屆部署在 Cloudflare Workers 以及 AWS Lambda + API Gateway 等 Serverless 解決方案上以供不同國家盡可能多的用戶正常訪問。后端(PHP Webman、MySQL、Redis ...)則是通過傳統(tǒng) VPS + CDN 部署在國內(nèi)單一節(jié)點。
為了 all in Serverless,我想盡可能在小范圍重構(gòu)代碼的情況下讓現(xiàn)有的 Webman 能夠運行在 Serverless 節(jié)點中,但似乎并沒有人公開分享過解決方案。
So,請考慮提供 Serverless 方向的最佳實踐,例如:
謝謝。
Bref + Workerman/Webman or how to run the php start.php start command #1108