andyrichardson / subscriptionless

GraphQL subscriptions (and more) on serverless infrastructure
MIT License
93 stars 3 forks source link

Add TTL for subscriptions #6

Closed andyrichardson closed 3 years ago

andyrichardson commented 3 years ago

About

For the most part, the information being persisted in DynamoDB isn't useful for anything other than simulating a stack in memory.

DynamoDB supports TTL for cleaning up old data. In our case, we can be fairly confident that any data that is over 2 hours old is stale due to this exceeding the connection duration limit imposed by AWS

Changes