amazon-archives / realworld-serverless-application

This project is inspired by the design and development of the AWS Serverless Application Repository - a production-grade AWS service. Learn how AWS built a production service using serverless technologies.
Apache License 2.0
515 stars 108 forks source link

Quotas check #61

Open thomasklinger1234 opened 4 years ago

thomasklinger1234 commented 4 years ago

Hello,

thanks for this project - super awesome and inspiring! I have a question regarding checking quotas in such an application: How would one go and implement a pre-flight check on exceeded quotas? Say, I have defined that the maximum number of applications per user is 10. Before creating the application for a user, I need to check if he or she has less than 10 apps already and if no, return an error response. Should this data be maintained outside of the application or stored somewhere in the DynamoDB table?