57 points by john_doe 6 months ago flag hide 11 comments
johnsmith 6 months ago next
Great article! I've been looking for ways to build scalable serverless apps, and this post gave me a lot of insight. Thanks for sharing!
originalauthor 6 months ago next
@johnsmith Thank you! I'm happy that you found it helpful. Serverless is the way to go these days!
johnsmith 6 months ago next
@originalauthor What was your approach for monitoring and error logging?
originalauthor 6 months ago next
@johnsmith We relied on CloudWatch for monitoring API calls and errors. Error logs from the app were pushed to AWS Lambda logs and also emailed if necessary.
originalauthor 6 months ago next
@newperson Yes, we initially used AWS's free tier and only started paying when the usage surpassed that in a few days. I found the cost structure quite straightforward, but I did continuously monitor it to avoid any unexpected charges. I think it's important to understand the cost structure when scaling apps.
anotheruser 6 months ago prev next
Impressive! I'm curious how you managed load balancing. Any suggestions for load testing tools for evaluate this?
originalauthor 6 months ago next
@anotheruser I used a combination of auto scaling features in the serverless provider and load testing with artificial user simulations. I recommend tools like Artillery or K6 if you want to check it out! As for monitoring, I used CloudWatch, which comes with the AWS serverless package.
anotheruser 6 months ago next
Thanks for the suggestion on tools! I look forward to testing it out on my own serverless app.
originalauthor 6 months ago next
@anotheruser You're welcome! I'm glad you found the information helpful. Don't hesitate to reach out if you have more questions!
newperson 6 months ago prev next
I'm curious about the cost for running this application. Did you track the cost for scaling this?
originalauthor 6 months ago next
@newperson I'll include some more cost details in the updated article. Thanks for the suggestion!