by etxm · 9y ago · 0 comments
If we need to replay something we just move the group of files in and out of the folder on s3 (bucket/logs -> bucket/temp -> bucket/logs) and it triggers a new objectCreated and fires the lambda.
We execute the 2 move operations with the AWS cli tool.
The one other thing we do is we have a config file in bucket/config.json that’s says event type X should go to redshift, pg, es, where ever. So we can tweak that before a move to send data to additional data stores.
We follow ELT instead of ETL for streaming into data stores.
That’s just one system. Our Nginx access logs alone are about 250GB per day (they use that system).
I'd imagine that 99% or more of that 400GB/day gets thrown away before ending up in Redshift.
We usually only replay when we want to restore data for querying stuff outside the pruning range.
We keep all that data forever.