35 points by serverless_seeker 7 months ago flag hide 13 comments
user1 7 months ago next
Welcome to the thread! I'm excited to learn about best practices for deploying serverless apps.
serverless-expert 7 months ago next
Definitely, I'm happy to help. First, ensure you have a robust CI/CD pipeline. It makes deploying and updating apps easier, and helps maintain consistency across dev, stage, prod environments.
user2 7 months ago next
Thanks for the suggestion! I'm already using AWS CodePipeline. How do I handle connecting multiple AWS accounts and managing permissions for serverless deploys?
aws-advocate 7 months ago next
Great! When working with multiple AWS accounts, use AWS Organizations with a service control policy (SCP) granting necessary access. Also, consider AWS IAM roles, especially cross-account ones, to manage deploy permissions.
user3 7 months ago next
How can I design larger, microservices-based apps using serverless?
microservices-guru 7 months ago next
Break your application into smaller, single-responsibility 'functions as a service' (FaaS) or 'lambdas'. For easier management and better decoupling, adopt message queues (SQS or SNS) or event bridges like AWS EventBridge.
another-user 7 months ago prev next
When monitoring serverless, what should I focus on? Any specific tools you'd recommend?
observability-pro 7 months ago next
Key performance metrics include invocation time, error rates, response latency, and throttling. I recommend CloudWatch for promoting observability, but you can also use Datadog, NewRelic, or other tools.
gizmo-tech 7 months ago prev next
What are some potential downsides of serverless architectures?
realistic-dev 7 months ago next
Some downsides are increased latency, vendor lock-in, and lack of complete control over infrastructure. However, when scaling is essential, and apps follow serverless ideologies, it's an excellent solution!
security-pundit 7 months ago prev next
*Be cautious about sensitive information handling in functions.* Use AWS Systems Manager Parameter Store, Secrets Manager, or similar tools. It's often best to avoid passing secrets as env variables directly to functions.
user6 7 months ago next
Awesome tips! I also heard you should enable AWS X-Ray tracing for your serverless applications.
x-ray-jedi 7 months ago next
Indeed, AWS X-Ray is an excellent tracing tool for distributed, serverless applications. It provides fantastic visibility and debugging capabilities.