โ Back to Amazon ECS, Fargate and EKS
๐ Amazon ECS, Fargate and EKS: cheat sheet
๐จ The analogyA port with working berths for containers: bring your own lorries or rent one by the trip.
๐ The regular explanationRunning containers on AWS. ECS schedules tasks from versioned task definitions and keeps services at their desired count behind a load balancer, EKS runs a managed Kubernetes control plane, and both run on EC2 instances you manage or on Fargate, which bills per task for the CPU and memory it asks for.
- You leave your packed orders box at the port's container depot, where it waits until someone needs it.
- You write loading sheet number 1. It says which box to take, how much room and power it gets, and which door pass it may use.
- You ask the yard foreman to start one load. The foreman reads sheet 1 first.
- The foreman picks a lorry, and the box is fetched from the depot and set down on it.
- The doors open and the workshop gets to work. The foreman notes that load 1 is running.
- The standing order says keep 3 loads working. Customers come through the gate, and the gate desk sends each one to a load.
- Load 2 breaks down. When the gate desk checks on it, there's no answer, so it stops sending customers there.
- The foreman sees only 2 of the 3 loads working, so it closes load 2 and starts load 4 from the same sheet.
- The gate desk checks load 4 answers properly, then sends it customers. Three loads are working again.
- Two loads from sheet 1 are working. You write sheet 2 and tell the foreman the standing order now uses it.
- The yard may hold up to 4 loads, so the foreman sets down 2 new loads beside the old ones. Customers still go to the old loads.
- The gate desk checks that both new loads answer properly before sending them any customers.
- Customers now go to the new loads. The old loads finish serving the people already inside, then close.
- The foreman drives the old loads away. Two loads from sheet 2 are working, and the workshop never closed.
- On your own lorry, the foreman fits loads A and B side by side. You keep the lorry fuelled and repaired.
- Half the lorry is empty, but it's your lorry, so you pay for all of it the whole time.
- With rented lorries, you just say each load's size. The port brings a lorry that size for load C, and another for load D.
- Load C finishes its job, and the port takes its lorry away. You stop paying for it at once.
- The porter shows the porter's pass at the depot and fetches your box.
- The porter starts the load. The loading sheet names the load's own pass, which says it may open the warehouse.
- The workshop asks the porter for today's copy of its pass. The copy runs out after a while, and fresh ones are handed out.
- The workshop shows its pass at the warehouse and drops off a receipt. The pass allows it, so in it goes.
- It tries the records office too. Its pass doesn't name that door, so it's turned away.
- Your crew fills in the standard form they'd use at any port that runs this system, and hands it to the rule office the port runs for you.
- The rule office puts the two loads on lorries from your own fleet, which the port helps you keep in shape.
- A one-off report load matches the rented-lorry rule, so the port brings a lorry just for it.
- Your crew checks on everything with the same tools they use at any other port.
๐งฉ Key questions
- The standing order says keep 3 loads working, and one load breaks down. What happens?
- The gate desk stops sending it customers, and the foreman starts a fresh load from the same sheet. The foreman always tops back up to the number on the standing order.
- You rent lorries by the trip. What are you paying for?
- The room and power each load asked for, for as long as it works. A rented lorry is sized to its load and leaves when the load is done.
- Your orders workshop needs to drop receipts at the warehouse. Where should that permission go?
- On the load's own pass, which says which doors the workshop may open. The porter's pass is only for the port's own jobs, and a hidden key works forever for anyone who finds it.
- During a swap to sheet 2, the yard must keep at least 2 working loads and hold at most 4. When are the old loads closed?
- After the new loads are set down and answer the gate desk's checks. Keeping at least 2 working means the new loads must be ready before any old one closes.
- Your crew already uses the standard international yard system at other ports and wants the same forms here. Which should you pick?
- The standard system the port runs for you, with your own fleet or rented lorries. The port's own rules are simpler, but they use their own sheets, not the standard forms.