Member-only story
How to Deploy Your Kotlin Microservice on AWS Cloud — Fargate
Go serverless!
This article is targeted at developers who are reasonably well acquainted with creating Kotlin (or Java) applications, but perhaps less aware of what to do next. There are several assumptions that we go off of:
- You’ve created a new and shiny Kotlin microservice and want to share it with the world.
- It’s a web application, so it needs to be hosted somewhere.
- It has some dependencies — a database; perhaps a cache. That’s something you don’t want to keep on your home computer, either.
- You want it to be scalable in the future — if it gains traction.
- You want to explore the possibilities that big Cloud providers offer — and you start with AWS.
- It’s dockerized — so you published a Docker image of it to some container repo. It’s important in the context of this article since the solution we’ll take on first will be container-based.
There are going to be a few articles on different ways to do it on AWS, but we’ll start with AWS Fargate.
AWS Fargate is a serverless, pay-as-you-go compute engine that lets you focus on building applications without managing servers. AWS Fargate is compatible with both Amazon Elastic Container…