Slin
03/30/2023, 11:40 PMSlin
03/30/2023, 11:44 PMthemetanull
03/31/2023, 2:38 AMzegevlier
03/31/2023, 9:24 AMArun_Venkat
03/31/2023, 12:52 PMelithrar
03/31/2023, 2:00 PMckoeninger
03/31/2023, 2:28 PMckoeninger
03/31/2023, 2:38 PMckoeninger
03/31/2023, 2:38 PMasync function handleRequest(request, env) {
...
let obj = env.DURABLE_OBJECT.get(id);
let resp = await obj.fetch(request);
ckoeninger
03/31/2023, 2:39 PMawait obj.fetch("some url you constructed")
the request.cf isn't going to be automatically passed alongckoeninger
03/31/2023, 2:42 PMawait obj.fetch("some url", {cf: request.cf})
jessec
03/31/2023, 3:27 PMckoeninger
03/31/2023, 3:29 PMHardAtWork
04/02/2023, 1:28 PMgeg
04/02/2023, 5:40 PMSamy
04/02/2023, 8:15 PMSamy
04/02/2023, 8:18 PMA
makes 100 requests to different IDs of durable object B
, where each of these request are slightly expensive to compute, fine for 128MB and limited CPU when handling one request, but not fine when handling 100 in the same thread. Will it work ? or are the 100 requests potentially going to compete for the 128MB of memory?Skye
04/02/2023, 8:19 PMHardAtWork
04/02/2023, 8:36 PMUnsmart | Tech debt
04/02/2023, 8:37 PMSkye
04/02/2023, 8:38 PMSkye
04/02/2023, 8:41 PMSamy
04/02/2023, 8:41 PMUnsmart | Tech debt
04/02/2023, 8:42 PMSamy
04/02/2023, 8:42 PMUnsmart | Tech debt
04/02/2023, 8:43 PMSamy
04/02/2023, 8:45 PMstark
04/02/2023, 8:47 PMHardAtWork
04/02/2023, 8:48 PMstark
04/02/2023, 8:48 PM