Re:Cloudflare Workers: Run JavaScript Service Workers at the...
by corobo on Friday September 29, 2017 @11:37AM
(#15366209)
What happens if the limits are reached? Does the end user get an error or does the request proceed as it would without the script?
[ Parent
| on HN ]
Re:Cloudflare Workers: Run JavaScript Service Workers at the...
by kentonv on Friday September 29, 2017 @12:32PM
(#15366742)
Currently, an error, because default handling might not be correct in many cases -- imagine a script implementing access control or expanding an HTML template. But I'd be open to the idea of letting the script call, like, `event.fallbackOk()` upfront to specify that default behavior as a fallback is safe.
Note that the 50ms is CPU time, not wall time. This is actually a pretty huge amount of time for handling one request.