3 ms·
Yeah, I ended up writing a whole thing for it as part of my static website CDK construct. Here's the request edge lambda: https://github.com/radiosilence/cdk-
by antihero 3y ago
Yeah, I ended up writing a whole thing for it as part of my static website CDK construct.
Here's the request edge lambda:
https://github.com/radiosilence/cdk-static-web/blob/master/src/lambdas/request/index.ts https://github.com/radiosilence/cdk-static-web/blob/master/s...
Here's the response edge lambda:
https://github.com/radiosilence/cdk-static-web/blob/master/src/lambdas/response/index.ts https://github.com/radiosilence/cdk-static-web/blob/master/s...
It's been a while since I've updated that project though.
With nano-web for my current site (https://blit.cc https://blit.cc) I am just spinning up a free-tier unikernel instance on EC2 and using it as the CF origin. Possibly even more cost effective than S3, and far simpler.
Response times for the "waiting" portion are usually around 5-10ms with CF and if I am going direct to the origin it's around 2-5ms