Platform Engineering

Post Image

Rolling deployment with Terraform on AWS

Terraform is a great tool to automate your infrastructure provisioning. One of the aims of the automation is having an ability to reproduce the deployments and reducing the time required to do the releases. Another important practice is to de-risk the deployment, allowing the teams to deploy continuously even during the working hours. This necessitates that the production systems should be continuously available and no downtime window is allowed (like in the old days). One of the ways you keep...

Read
Post Image

AWS Lambda: Long-Running Functions using Tail Recursion

AWS Lambda function has a timeout of 900 seconds which sometimes is not enough to finish tasks that take a longer time. In such cases, recursion is a technique that can be applied to solve the problem, provided the single task can be broken into sub-tasks. I am not talking about the recursion provided by the language, but recursion by re-invocation of the same lambda function with additional state for continuity of the task. This can be accomplished by utilizing...

Read
Post Image

ECS Integrated Service Discovery

ECS is a service provided by AWS that manages the orchestration and provisioning of Docker containers, ECS allows the application to run in the cloud without having to configure the environment for the application to run and also easily scales up/down the containers based on the need. Service discovery keeps track of all the backend servers so that requests from the client can be distributed across the backend servers. In order to make the services discoverable and also the services...

Read