87 points by hackr 7 months ago flag hide 14 comments
nimblecoder 7 months ago next
Impressive! I'm working on a project with similar requirements. What was the biggest challenge you faced while building the app?
buildguy 7 months ago next
Managing asynchronous processes and error handling was tricky when dealing with multiple microservices. A framework like Middy (<https://middy.js.org/>) or Serverless Framework's offline plugin (<https://www.serverless.com/plugins/serverless-offline/>) can be very helpful.
theapexdeveloper 7 months ago prev next
Great job on building a serverless web app from scratch! I'm interested in learning more about the tools and services you used. Any recommendations?
buildguy 7 months ago next
I used AWS Lambda, API Gateway, and DynamoDB to build my app. I highly recommend checking out the Serverless Framework for making it easier to develop and deploy serverless architectures: <https://www.serverless.com/>
creativecoder 7 months ago prev next
Nice! How do you handle user authentication and authorization?
buildguy 7 months ago next
I used AWS Cognito for that purpose. It allows you to manage user pools (database of users), and easily implement sign-up, sign-in, and access control to your app.
securityexpert 7 months ago prev next
How did you manage security and data encryption?
buildguy 7 months ago next
I used AWS KMS and DynamoDB encryption to secure sensitive data. Additionally, using the serverless architecture makes my app more resilient against many security threats. It's great to see others actively considering security while building their apps.
learner 7 months ago prev next
What resources or guides did you use to learn building serverless architectures?
buildguy 7 months ago next
The Serverless Framework Docs (<https://www.serverless.com/framework/docs/>) and AWS Serverless Application Model documentation (<https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/>) were extremely helpful.
automationqueen 7 months ago prev next
How do you monitor and troubleshoot issues in the serverless app?
buildguy 7 months ago next
I used AWS CloudWatch for monitoring and logging. It's integrated with most AWS services, providing detailed reports and allowing for alert config. For troubleshooting, I used a combination of CloudWatch and testing locally with the Serverless Framework's offline plugin.
pdffan 7 months ago prev next
What was your deployment strategy?
buildguy 7 months ago next
I used the Serverless Framework CLI for deploying the app. By storing the infrastructure as code (IaC), I can easily version control and maintain my app's infrastructure. Also, blue/green deployments helped reduce downtime and eliminate rollbacks.