At this point you have an application that can detect the sentiment of a Twitch chat and send negative sentiment scores to CloudWatch so that you can monitor how negative the chat is over time.

In order to use this tool in a production setting, you can’t rely on running the application on your local machine. But it’s also probably not the core business problem you’re solving so ideally you don’t want to manage servers to keep the application running.

AWS Fargate solves this use case perfectly. Fargate is a service that provides serverless compute for Docker containers. Fargate runs containers in either an Amazon Elastic Container Service (ECS) cluster or an Amazon Elastic Kubernetes Service (EKS) cluster. In this module, you will set up an ECS cluster in order to run the monitoring application in Fargate.