Chaika
05/17/2023, 5:21 PMChaika
05/17/2023, 5:22 PMfrydim1
05/17/2023, 5:24 PMChaika
05/17/2023, 5:25 PMUnsmart | Tech debt
05/17/2023, 5:26 PMboywithkeyboard
05/17/2023, 5:27 PMfrydim1
05/17/2023, 5:27 PMfrydim1
05/17/2023, 5:27 PMfrydim1
05/17/2023, 5:28 PMUnsmart | Tech debt
05/17/2023, 5:28 PMfrydim1
05/17/2023, 5:29 PMfrydim1
05/17/2023, 5:29 PMUnsmart | Tech debt
05/17/2023, 5:29 PMIsaac McFadyen | YYZ01
05/17/2023, 5:29 PMChaika
05/17/2023, 5:29 PMChaika
05/17/2023, 5:30 PMChaika
05/17/2023, 5:31 PMfrydim1
05/17/2023, 5:34 PMTom Sherman
05/17/2023, 5:41 PMkian
05/17/2023, 5:43 PMdave
05/17/2023, 6:03 PMIsaac McFadyen | YYZ01
05/17/2023, 6:05 PMworkerd
works is that they put everything shared across every Worker (such as fetch
, all global APIs like HTMLRewriter, etc) into an isolate and then freeze a "snapshot". Then when a user sends a request to their Worker, they "thaw" the snapshot (which is the same across all users) which helps prevent cold-start delays.
However, this doesn't work with user-specific bindings - since the bindings are not the same across Workers, if they wanted to put them in the global scope they would need to "thaw" the common snapshot, add the globals, and then continue, which adds some extra cold-start duration. That's one of the purposes of Module Workers - they avoid the need for user-specific global code.sathoro
05/17/2023, 6:29 PMsathoro
05/17/2023, 6:29 PMimage/png
response and get a base64 version of it?kian
05/17/2023, 6:32 PMWalshy | Pages
05/17/2023, 6:33 PMsathoro
05/17/2023, 6:34 PMsathoro
05/17/2023, 6:35 PMsathoro
05/17/2023, 6:43 PMdave
05/17/2023, 8:06 PM