-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consistent high latency on PROD with Vercel-proxied spx-backend #804
Comments
This replaces Vercel Edge Middleware with the Vercel Build Output API[^1] to reimplement the API proxy, cutting costs (no more invocation-based charges), reducing latency (no middle layer or cold starts), and simplifying the setup, while retaining dynamic configuration via the `VERCEL_PROXIED_API_BASE_URL` environment variable. Updates goplus#804 [^1]: https://vercel.com/docs/build-output-api/v3 Signed-off-by: Aofei Sheng <[email protected]>
This replaces Vercel Edge Middleware with the Vercel Build Output API[^1] to reimplement the API proxy, cutting costs (no more invocation-based charges), reducing latency (no middle layer or cold starts), and simplifying the setup, while retaining dynamic configuration via the `VERCEL_PROXIED_API_BASE_URL` environment variable. Updates goplus#804 [^1]: https://vercel.com/docs/build-output-api/v3 Signed-off-by: Aofei Sheng <[email protected]>
) This replaces Vercel Edge Middleware with the Vercel Build Output API[^1] to reimplement the API proxy, cutting costs (no more invocation-based charges), reducing latency (no middle layer or cold starts), and simplifying the setup, while retaining dynamic configuration via the `VERCEL_PROXIED_API_BASE_URL` environment variable. Updates #804 [^1]: https://vercel.com/docs/build-output-api/v3 Signed-off-by: Aofei Sheng <[email protected]>
And as a comparison, I conducted a similar test with the API proxied by Cloudflare Workers: export default {
async fetch(request) {
const url = new URL(request.url);
url.hostname = 'builder-api.goplus.org';
return fetch(new Request(url, request));
},
}; The result was as expected, with improved performance: |
Complete response from Vercel Support
|
The text was updated successfully, but these errors were encountered: