Posts tagged “aws”
-
Lambda, Fargate or EC2: how do you decide on cost?
You pay Lambda per request and per millisecond, Fargate per second of reserved vCPU and memory, and EC2 per instance-hour whether busy or not. The cheapest choice depends on utilisation: spiky and idle favours Lambda, steady and busy favours EC2, and the crossover is worth calculating for your own…
-
What's the cheapest disaster recovery that actually works?
Backups you've never restored are a hope. Two numbers decide a disaster-recovery plan: how much data you can lose (RPO) and how long you can be down (RTO). Measured on a 1 GB PostgreSQL database: a nightly dump vs continuous WAL archiving, with the server and its disk deleted mid-write.
-
How do you scale an API on AWS?
The AWS building blocks for each scaling technique (CloudFront and ElastiCache for caching, ALB and Auto Scaling for replicas, RDS Proxy for connections, Aurora replicas for reads, SQS for spikes, WAF for abusive clients), in the order you'd reach for them.
-
Postgres or DynamoDB for a new SaaS?
DynamoDB is superb at the questions you designed it for and expensive at the ones you didn't; PostgreSQL answers questions you haven't thought of yet. The same 200,000 orders in both: 0.5 read units for the planned query, 2,689 for an unplanned report that PostgreSQL ran in 13 ms without an index.
-
Do I need Kubernetes?
Probably not yet. Plain EC2 with Docker, or ECS on Fargate, runs most small and mid-sized products with far less to operate. When Kubernetes (EKS) earns its complexity, and what each option costs you in money, people and on-call.
-
SQS, SNS or EventBridge: which one for which job?
Three AWS messaging services that overlap enough to confuse: a queue for work, a topic for fan-out, and an event bus for routing by content. What each guarantees, how each fails, and the combinations most systems actually use.
-
How do you prepare for a technology audit as a one-person infrastructure team?
Auditors don't want to see that you're careful; they want evidence that controls exist and work: who can access production, how changes reach it, whether backups restore, and what happens when something goes wrong. How to produce that evidence cheaply, from the systems you already run.
-
Should you self-host your database or use RDS?
RDS and Aurora buy you backups, point-in-time recovery, failover and patching for a premium on every instance-hour. Self-hosting on EC2 can cost far less, and makes every one of those jobs yours. When each is the right call, and what you must build before self-hosting is safe.
-
How do you cut an AWS bill by 86%?
From about $14K to about $2K a month, with the platform still serving 5K-10K requests a second at 99.9% uptime. Three levers, in order: delete what nobody uses, right-size what's left from measured peaks, and self-host databases only where you can restore, fail over and patch on your own.