Scaling and Optimizing Serverless Services with Elixir: A Cautionary Tale

TLDRLearn about the challenges and potential pitfalls of scaling and optimizing serverless services with Elixir, including the high cost of API Gateway, and how a switch to a file storage solution improved performance.

Key insights

💡Using Elixir for serverless services can offer improved performance and reduced costs.

🔥The combination of API Gateway and Lambda can be costly, especially at scale.

🔒Handling HTTP requests and data batching in Elixir can greatly optimize performance.

👨‍💻Developers should carefully consider language choice and infrastructure costs when building serverless services.

⏱️Timestamps can help locate relevant parts of the video and provide a better viewing experience.

Q&A

Why did you switch from AWS API Gateway and Lambda to Elixir?

We switched to Elixir to improve performance and reduce costs, as the combination of API Gateway and Lambda was becoming expensive at scale.

What were the challenges you faced with serverless services?

The high cost of API Gateway and the need for efficient handling of HTTP requests and data batching were the main challenges we encountered.

How did switching to a file storage solution improve performance?

Switching to a file storage solution allowed us to circumvent back pressure and significantly reduce request times, resulting in improved performance.

Why is language choice important when building serverless services?

Choosing the right language can have a significant impact on performance and cost optimization, so it's important to consider language capabilities and infrastructure costs.

How can timestamps help viewers navigate the video content?

Timestamps allow viewers to easily locate and jump to relevant parts of the video, providing a better viewing experience.

Timestamped Summary

00:00The video discusses the challenges and potential pitfalls of scaling and optimizing serverless services with Elixir.

05:00The speaker highlights the high cost of using API Gateway and Lambda, especially at scale.

09:00The speaker shares their decision to switch to Elixir to improve performance and reduce costs.

11:00The speaker explains how switching to a file storage solution helped optimize performance and reduce request times.