With serialization
state survives restart
Session end
200 turns
›
Serialize
state → JSON
›
store
S3
›
Restart
new process
›
Deserialize
restore + validate
Without it
context lives only in RAM
Session end
200 turns
›
No write
nothing persisted
›
store
empty
›
Restart
new process
›
Back to zero
greets as new