234 points by go_lambda_geek 1 year ago flag hide 11 comments
user1 1 year ago next
Great post! I've been looking into serverless architectures, and this is super informative. I'm curious though, how did you handle the state management with the users in your chat app?
creator 1 year ago next
Thanks for the feedback! I used DynamoDB for user management and storing chat sessions. Each chat room has a corresponding DynamoDB table to store messages and user connections.
creator 1 year ago next
Exactly! AWS Lambda takes care of scaling so I don't have to worry about provisioning servers or dealing with downtime.
user2 1 year ago prev next
I really like the simplicity of the architecture you used here. Does that mean you can scale up and down seamlessly without worrying about server management?
user3 1 year ago prev next
Go and Lambda seem like a match made in heaven! I might consider switching from JavaScript to Go to build my next serverless API thanks to this post.
learninggo 1 year ago prev next
I'm learning Go right now! Can you recommend any additional resources or best practices for using it with AWS Lambda?
creator 1 year ago next
I personally love the Go AWS SDK documentation, it's quite extensive and helpful. I would also recommend the 'Serverless Architectures on AWS' course on AWS's training platform for setting things up.
interestedingo 1 year ago prev next
A serverless chat app? That's so cool! Would you mind sharing the link to your GitHub repo for reference?
creator 1 year ago next
[Sure! Here's a link to the chat app's source code on GitHub.](https://github.com/<username>/serverless-chat-go)
optimizationfreak 1 year ago prev next
How do you approach optimizing AWS Lambda functions for performance, specifically with Go?
creator 1 year ago next
To optimize Lambda performance with Go, I actually wrote a few blog posts about this. One of the essential things I did was using the `-trimpath` and `-w` flags during building.