Unsmart | Tech debt
05/25/2023, 3:37 PMckoeninger
05/25/2023, 3:38 PMIann
05/25/2023, 3:38 PMput
and delete
is called per DOIann
05/25/2023, 3:38 PMWallacy
05/25/2023, 3:39 PMUnsmart | Tech debt
05/25/2023, 3:39 PMdurableObjectsPeriodicGroups
query so currently you would need to query both invocations and periodic groups. GQL can do both which is nice but having to only get data from one would be nicer.ckoeninger
05/25/2023, 3:40 PMWallacy
05/25/2023, 3:41 PMckoeninger
05/25/2023, 3:45 PMWallacy
05/25/2023, 3:48 PMIann
05/25/2023, 3:49 PMWallacy
05/25/2023, 3:50 PMIann
05/25/2023, 3:55 PMckoeninger
05/25/2023, 3:59 PMIann
05/25/2023, 4:02 PMIann
05/25/2023, 4:18 PMckoeninger
05/25/2023, 5:41 PMG4G4N
05/25/2023, 5:45 PMckoeninger
05/25/2023, 6:12 PMsdan
05/25/2023, 6:20 PMcontroller.storage
doesn't seem to be documented anywhere -- guessing this.state.storage
has taken over?
https://cdn.discordapp.com/attachments/773219443911819284/1111358137031737514/Screenshot_2023-05-25_at_11.18.51_AM.png▾
Unsmart | Tech debt
05/25/2023, 6:21 PMsdan
05/25/2023, 6:22 PMsdan
05/25/2023, 6:27 PMthis.sessions = [];
if i define that in my constructor -- how persistent is that? only if other workers connect to that DO on that same id can access that while there is a websocket?
suppose i send a request to this DO and update sessions
since its just a request and it doesn't "hold" it, is it immediately erased if i send another request? this is relating to this: https://github.com/cloudflare/workers-chat-demo/blob/66f513acb23fd5acafbc2efba4385d1a1becd7fc/src/chat.mjs#L220sdan
05/25/2023, 6:30 PMG4G4N
05/25/2023, 6:32 PM"outcome": "canceled"
This error is typically caused by the client (browser) side of the connection closing it, and doesn't usually indicate a problem on Cloudflare's side.
And looking into code 1006 further, it seems this is an error code non-specific to Cloudflare and indicates an abnormal connection close on the end of the client. For example there are general internet resources like https://stackoverflow.com/a/19305172 which describe this.Larry
05/25/2023, 7:10 PMckoeninger
05/25/2023, 7:41 PMv8.serialize(foo).length
in a node shell is reasonable estimate at least for storage size. If you're trying to estimate how much memory a whole app uses, local testing with minflare is probably your best bet. You can tell whether instances are sharing memory in production by just checking / setting a global variable in the constructor (if it was already set, you're sharing). There is no maximum number of instances that can share memoryckoeninger
05/25/2023, 7:42 PMckoeninger
05/25/2023, 8:16 PMsdan
05/25/2023, 8:30 PM