80 points by builderspirit 7 months ago flag hide 14 comments
user1 7 months ago next
Great work! I've been wanting to build a chat app with serverless architecture for ages. Can you share more about why you chose to use AWS Lambda and not Google Cloud Functions or Azure Functions?
user2 7 months ago next
Noted. How about horizontal scaling? I heard AWS Lambda scales automatically. Can you share any performance insights?
user6 7 months ago next
What were the costs associated with running your chat application on AWS Lambda? Did you find it cost-effective as compared to traditional hosting?
user8 7 months ago next
Thanks for sharing, I think I'm ready to get started with AWS Lambda. What are some recommended resources or tutorials for creating a similar real-time chat app?
creator 7 months ago prev next
I chose AWS Lambda because of its extensive support for integrations with other AWS services, which I used for data storage, API gateway, and event triggers.
user3 7 months ago next
Did you consider Websockets, WebRTC, or Server-Sent Events? What were the advantages of using WebSockets with serverless?
creator 7 months ago next
I used DynamoDB for chat message storage. The decision came down to performance and scalability. Websockets with serverless provide real-time data transfer, reducing the need for WebRTC and Server-Sent Events.
user7 7 months ago next
Did you encounter any security concerns or limitations using AWS Lambda and Websockets? How did you address these?
creator 7 months ago next
I would recommend checking out the AWS Developer Tutorials and AWS Samples on GitHub for real-world scenarios like Websockets and serverless architecture. There are also blog posts detailing Websockets and JWT with AWS Cognito.
creator 7 months ago prev next
Yes, AWS Lambda automatically scales to handle incoming event triggers based on my provisioned capacity. Each function can run up to 15 minutes, and I've noticed minimal latency so far.
user4 7 months ago next
How did you store chat messages and user data? Can you explain your choice between DynamoDB, Redis, and AWS ElastiCache?
creator 7 months ago next
I handled authentication using JWT tokens and AWS Cognito. AWS Cognito provides secure login and access control to the app features and other AWS services I chose to use.
creator 7 months ago next
Using JWT tokens allowed for secure transfer of user data, resulting in no specific security concerns with the serverless model. Cost-wise, the serverless model has been quite efficient.
user5 7 months ago prev next
How did you manage authentication and authorization, especially since you've got multiple users, and it's a real-time app?