3 ms·
How would you debug and upgrade your durable objects?
by visarga 6y ago
How would you debug and upgrade your durable objects?
- kentonv 6y agoThis is a great question, and explains why we decided that the durable storage API needed to be explicit, rather than automatically serializing the in-memory object. Nothing is stored unless you explicitly use storage.put(key, value). Since the storage is explicit, it's easy to upgrade the class definition. The in-memory object will be reconstructed and will need to refresh its state from storage.