Urgent.News

What's breaking now, across thousands of outlets.

Tech

I Stopped Managing Servers Manually — Understanding Docker, Amazon ECR, ECS & Fargate

I Stopped Managing Servers Manually — Understanding Docker, Amazon ECR, ECS & Fargate I had already learned how a web application can be built on AWS using EC2, Load Balancers, Auto Scaling, RDS, S3, SQS, and other services. But there was still one question I kept coming back to: What if I don't want to manage the server itself? With EC2, I am still responsible for things like the operating…

Managing servers manually on AWS could be a daunting task, as it required handling aspects such as the operating system, runtime environment, and server configuration. Container technology offered a potential solution to this challenge. Docker emerged as a popular container platform, allowing developers to package applications along with their necessary environment into a single image.

The Docker image was then stored in Amazon ECR, AWS's managed container image registry. While storing the image was crucial, it was not enough to run the application. This is where Amazon ECS, the Amazon Elastic Container Service, came into play. ECS served as a container orchestration tool, managing the running containers for an application.

ECS utilized a Task Definition to define how the containers should run. This definition included specifics such as the Docker image to use, the CPU and memory allocation, port settings, environment variables, IAM permissions, and logging configurations. The service would then ensure that the desired number of tasks were running, automatically replacing any that failed.

However, AWS Fargate offered an alternative compute option for ECS. Fargate is a serverless compute engine for containers, meaning that AWS would handle the underlying infrastructure for running the containers. This approach allowed developers to focus on defining their applications' configuration, without worrying about the underlying EC2 servers. The entire architecture could be visualized as follows:

1. Developers created Docker images using Dockerfiles.

2. These images were stored in Amazon ECR.

3. Amazon ECS managed the containers defined in a Task Definition.

4. With Fargate, AWS managed the underlying infrastructure, enabling a fully managed container deployment solution.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Ollama keep_alive: My Model Reloaded 214 Times in One Day

My local chat app was fast every single time I tested it, and slow every single time I actually used it. That's the tell, and I ignored it for weeks.

  • Ollama experienced performance issues due to model eviction from VRAM.
  • Reporter discovered three model persistence options for Ollama.
  • Adjusting keepalive resolved model reloading delays.

Cost-Effective Public Hosting for Typescript/MySQL Monorepo: Optimizing for Small User Base Without Unnecessary Expenses

Introduction Hosting a Typescript/MySQL monorepo application for a small user base (4-5 users) presents a unique challenge: balancing cost-effectiveness with tech stack compatibility .

  • Oracle Cloud's Always Free Tier is optimal for small Typescript/MySQL monorepo
  • Supports Docker containers and managed MySQL database without domain purchase
  • Monitors resource usage to avoid surpassing free tier limits

I built 30+ free browser tools for pixel artists in a weekend — here they are

I built 30+ free browser tools for pixel artists in a weekend — here they are I'm LaunchTower. Over the past few weeks I've been building a catalog of small, single-purpose web tools for pixel-art and…

  • Developer built over 30 free browser tools for pixel artists in a weekend
  • Tools run entirely within the browser, no installation or sign-up required
  • Catalog includes tools for palette management, color simulation, sprite editing, and more

More from Tuesday 15 September →