Vikas Solegaonkar there might be a little domain model here:
user has a clientId (PK)
user can create multiple counters (SK)
user can admin a counter, e.g. suspend, delete, and set value (reset to zero).
each counter has a userkey without the admin privileges, getCounter (reads current value need to set TTL so there is no caching), incCounter (returns the new value with a timestamp)
users could be internal services: orders, customers,
Add a billing mechanism for clients and their users and "this time next year we will be millionaires". youtube.com/watch
Owain McGuire
Builds stuff
I did hunt around a while back to find this as a SaaS application. Couldn't find it. With an authorizer, you could launch!
Under heavy workload on a specific counter, this is going to hotspot the item in DynamoDB. As it has to be atomic, there is no way to cache (check you haven't got any caching in API Gateway) and the usual Scatter-Gather pattern defeats the atomic nature too.
Fun though.