rodbs
12/22/2022, 9:29 AMHardAtWork
12/22/2022, 9:35 AMrodbs
12/22/2022, 11:31 AM2. Duration billing charges for the 128 MB of memory your Durable Object is allocated, regardless of actual usage. If your account creates many instances of a single Durable Object class, Durable Objects may run in the same isolate on the same physical machine and share the 128 MB of memory. These Durable Objects are still billed as if they are allocated a full 128 MB of memory.
I'm using DO to store user data. If user's are creating instances (small) of the same class , does it mean they will run in the same 128MB (as much as it can fit in) and billed once?rodbs
12/22/2022, 11:36 AMDurable Object lifespan
A Durable Object remains active until all asynchronous I/O, including Promises, within the Durable Object has resolved.
But then here it says:
In-memory state in a Durable Object
Variables in a Durable Object will maintain state as long as your Durable Object is not evicted from memory. A common pattern is to initialize an object from persistent storage and set instance variables the first time it is accessed. Since future accesses are routed to the same object, it is then possible to return any initialized values without making further calls to persistent storage.
What does to return any initialized values
mean? how are values kept in memory once the DO is not active anymore?Unsmart | Tech debt
12/22/2022, 11:54 AMBurrito
12/22/2022, 12:49 PMIsaac McFadyen | YYZ01
12/22/2022, 12:50 PMIsaac McFadyen | YYZ01
12/22/2022, 12:50 PMIsaac McFadyen | YYZ01
12/22/2022, 12:50 PMIsaac McFadyen | YYZ01
12/22/2022, 12:50 PMIsaac McFadyen | YYZ01
12/22/2022, 12:50 PMBurrito
12/22/2022, 12:52 PMUnsmart | Tech debt
12/22/2022, 1:50 PMBurrito
12/22/2022, 2:51 PMUnsmart | Tech debt
12/22/2022, 2:53 PMBurrito
12/22/2022, 2:53 PMBurrito
12/22/2022, 2:55 PMSkye
12/22/2022, 2:55 PMSkye
12/22/2022, 2:55 PMBurrito
12/22/2022, 2:57 PMUnsmart | Tech debt
12/22/2022, 3:02 PMUnsmart | Tech debt
12/22/2022, 3:03 PMBurrito
12/22/2022, 3:17 PMBurrito
12/22/2022, 3:20 PMUnsmart | Tech debt
12/22/2022, 3:21 PMBurrito
12/22/2022, 3:23 PMBurrito
12/22/2022, 3:25 PMUnsmart | Tech debt
12/22/2022, 3:27 PMUnsmart | Tech debt
12/22/2022, 3:27 PMBurrito
12/22/2022, 3:31 PM