Home / Companies / Contentful / Blog / Post Details
Content Deep Dive

DevOps gold nuggets: scaling down gracefully with AWS Lambda and HAProxy

Blog post from Contentful

Post Details
Company
Date Published
Author
Anthony Stanton
Word Count
802
Company Posts That Month
1
Language
English
Hacker News Points
-
Post removed?
No
Summary

At Contentful, we utilize Amazon Web Services' Elastic Load Balancer and open-source HAProxy software to manage traffic routing and load-balancing of our API services. Our infrastructure is configured using Chef, allowing us to scale down without affecting user requests. To address the challenge of scaling down without losing customer connections, we implemented an Auto Scaling lifecycle hook that removes instances from HAProxy before they are terminated. However, this process required a central location to receive notifications and add tags to instances. This is where AWS Lambda comes in, providing a zero-administration compute platform for executing stateless code in response to events. We implemented a 20-line Node JS function using Lambda to handle the tagging process, eliminating complexity and ensuring correct operation.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Serverless 9 67 14 8 +76%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.