Application (audit) logging using AWS - Timestream vs DynamoDB

1

We have a large CMS application that produces quite a large amount of log data (upto 100,000 records per day). We want to be able to store the audit log, something like this -

'timestamp, entity type, entity ID, operation <ADD/EDIT/DELETE>, <change made>, userID'

So, for example, if we want to store information about who edited a page and when, entity type and entity Id would be 'page' and the page ID respectively. We would like to hold about 6-12 months of audit history and would like to be able to search the logs to satisfy queries like:

  • For Page A, give me all events

  • For Page A, give me all events where timestamp is between 10 days ago and now()

  • For Page A, give me all events where operation=EDIT and timestamp is between 10 days ago and 5 days ago

Between AWS Timestream and DynamoDB, which one would be a more optimal choice for this specific use case? How do these two services compare in terms of meeting the requirements?

PBali
질문됨 일 년 전476회 조회
1개 답변
2

DynamoDB is by far the the better service for this use-case, you are only needing key-value lookups and don't require the additional features that Timestream offers, like running analytical queries over a given time period.

It's a simple design for DynamoDB where you can efficiently perform your access patterns and you can also use TTL to delete data older than 12 months free of charge.

profile pictureAWS
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠