Site iconAxway Blog

How to Run your API Builder Standalone Docker Image on AWS Fargate

In my last blog post on Running API Builder 4.0 Docker Images on AWS EC2, we described how to set up multiple AWS EC2 Linux instances and install Docker and the API Builder Docker image on the instances for a high availability (HA) architecture. However, this architecture did not include scaling to cover different loads on our API.

In this blog post, we’ll describe how to use AWS Fargate to implement a high availability architecture with auto scaling. AWS Fargate is a compute engine for Amazon ECS that allows you to run Docker containers without having to manage servers or clusters. The only thing we need is our Docker image – which we already published to Docker Hub.

The architecture we are implementing is shown below:


The main difference between this architecture and our previous HA architecture is that now we have auto scaling of our containers, managed by AWS.

Let’s get started.

Summary

In this blog post, we saw how easy it is to deploy our API Builder Standalone Docker image in AWS Fargate to easily achieve a high availability, auto scaling architecture in just a few minutes.

The same API Builder application can be deployed via ECS as well, but AWS Fargate abstracts a lot of the complexity of dealing with instances and load balancers. And, you can focus on your application instead and not have to worry about the nuances of container management.

Exit mobile version