Building an Atomic Counter in Lambda

Building an Atomic Counter in Lambda

I wanted to build an atomic counter to keep metrics of site visits and actions. Originally I started storing all the log messages and I was going to write some queries to summarise it. However, I decided that I didn’t need all the underlying data, at least not in this format, it’s stored elsewhere, so I wanted something which would just store the daily totals. DynamoDB is great place to store this information.