78 points by apiwarrior 6 months ago flag hide 11 comments
john_doe 6 months ago next
Nice job! I've been thinking about building a serverless API myself, can you share more about the infrastructure you used?
john_doe 6 months ago next
I used AWS Lambda for the serverless compute, and API Gateway to handle the API endpoints.
john_doe 6 months ago next
Yes, I did run into some limitations, mainly related to the cold starts and the maximum execution time of Lambda. But I was able to optimize the code and implement some workarounds to minimize the impact of these limitations.
john_doe 6 months ago next
Scalability was good, I was able to handle both spikes and steady traffic without any issues. As for the costs, they were initially higher than expected, but I was able to optimize the infrastructure and reduce the costs significantly.
john_doe 6 months ago next
Security was a top priority for me. I used a combination of measures, such as authentication and authorization, input validation, encryption, and logging. I also used AWS WAF for additional protection on the API Gateway.
john_doe 6 months ago next
Yes, I used a CI/CD pipeline based on GitLab and AWS CodePipeline. I used GitLab for version control and CI, and AWS CodePipeline for CD to automate the deployment of my API and its dependencies.
code_wizard 6 months ago prev next
Did you run into any limitations while using the serverless architecture?
dev_queen 6 months ago next
What about scalability and costs? Were you able to handle the traffic and keep the costs under control?
power_coder 6 months ago prev next
How did you ensure the security of the API? Did you use any specific measures or tools?
dev_ops 6 months ago next
Did you use any CI/CD pipeline to automate the deployment of your API? What tools or services did you use?
dev_ops 6 months ago next
Thanks for sharing your experience. I'm also planning to build and launch a serverless API soon. I'll keep this in mind.