Greylock
07/01/2021, 3:04 AMGreylock
07/01/2021, 3:05 AMGreylock
07/01/2021, 3:05 AMGreylock
07/01/2021, 3:05 AMGreylock
07/01/2021, 3:05 AMWallacy
07/01/2021, 3:08 AMWallacy
07/01/2021, 3:12 AMGreylock
07/01/2021, 3:15 AMGreylock
07/01/2021, 3:15 AMGreylock
07/01/2021, 3:15 AMGreylock
07/01/2021, 3:40 AMGreylock
07/01/2021, 3:41 AMzifera
07/01/2021, 8:41 AMzifera
07/01/2021, 8:53 AMDeebster
07/01/2021, 9:15 AMMrHalzy
07/01/2021, 11:48 AMdeleteAll
from within the durable object.brett
07/01/2021, 1:38 PMidFromName
or newUniqueId
?brett
07/01/2021, 1:39 PMbrett
07/01/2021, 1:41 PMbrett
07/01/2021, 1:43 PMlist
method will return expiration info, or you could (redundantly) put your own expiration info in metadata and use getWithMetadata
kenton
07/01/2021, 2:20 PMidFromName()
always returns instantly, it computes the ID without doing any network communications. The delay comes when you access the object. The first time it is accessed, the system has to check if the same ID has already been used anywhere else in the world, which can be slow. The information is then cached in the calling colo, so subsequent requests from the same colo will use the cached information and will be faster. Though eventually the cache may be evicted, of course.Deebster
07/01/2021, 2:39 PMDurableObjectNamespace.get(id): DurableObjectStub
, is your implementation something like you fork off a getOrCreateDO() call and then return the stub? Or does that bit get done when you do the first fetch()?kenton
07/01/2021, 3:11 PMWallacy
07/01/2021, 3:27 PMbrett
07/01/2021, 3:30 PMWallacy
07/01/2021, 3:41 PMGreylock
07/01/2021, 3:43 PMWallacy
07/01/2021, 4:06 PMGreylock
07/01/2021, 4:07 PMGreylock
07/01/2021, 4:07 PM