-
I read that Tetra is using Pickle to store a state between requests. I was wondering how would Tetra work in a Cloud Native environment with containers coming and going and where you usually have at least 2 instances running to have some sort of resilience. Is it possible to configure pickle to share the state across multiple instance, is is possible to resume after a container crash? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Tetra is prefect for that sort of deployment as although the components are "statefull", that state is not persisted on the server. They are actually "paused", serialised with Pickle (Pythons built in serialization api), encrypted+signed (for security), and that is then sent to the browser. The browser then sends the encrypted state back to the server each time it calls a public method, receiving an updated encrypted state in return. No state is persisted on the server at all - perfect for multi server deployments or "serverless". You can read details of how it works here: https://www.tetraframework.com/docs/state-security |
Beta Was this translation helpful? Give feedback.
Tetra is prefect for that sort of deployment as although the components are "statefull", that state is not persisted on the server. They are actually "paused", serialised with Pickle (Pythons built in serialization api), encrypted+signed (for security), and that is then sent to the browser. The browser then sends the encrypted state back to the server each time it calls a public method, receiving an updated encrypted state in return. No state is persisted on the server at all - perfect for multi server deployments or "serverless".
You can read details of how it works here: https://www.tetraframework.com/docs/state-security