Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DynamoDB 400kB item limit causes session crashes #12

Open
rmhsilva opened this issue Jul 27, 2020 · 0 comments
Open

DynamoDB 400kB item limit causes session crashes #12

rmhsilva opened this issue Jul 27, 2020 · 0 comments

Comments

@rmhsilva
Copy link
Contributor

Problem
Various parts of Teal session data can grow unbounded, but the item size in DynamoDB is limited to 400kB. e.g. Session events/logs eventually hit the limit, crashing the session.

This underlying infrastructure constraint should not be visible to programmer in any way.

Possible solutions

  • use a different storage mechanism (e.g redis/elasticache)
  • split the session data into smaller pieces that are very unlikely to be > 400kB (this is semantically nice, but could get expensive as the number of items grows huge)
  • implement an optimising batch storage system (e.g. per-session events/logs, written as multiple binary blob items). Cheaper, but much more complex to implement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant