kwhitley / itty-durable

Cloudflare Durable Objects + Itty Router = shorter code
MIT License
251 stars 18 forks source link

Question state #39

Closed nikitapilgrim closed 1 year ago

nikitapilgrim commented 1 year ago

I understand correctly that I can't use this.messages = []; For chat, right? Because as soon as the 128kb limit is reached, this.state.get('data') will be reset to initial?

kwhitley commented 1 year ago

I understand correctly that I can't use this.messages = []; For chat, right? Because as soon as the 128kb limit is reached, this.state.get('data') will be reset to initial?

That's correct... I need to create a mechanism to chunk up >128KB states and save/load them! This has definitely been a limitation so far...