DynamoDB cost optimization: capacity mode, GSIs, TTL, and table class
DynamoDB cost is throughput + storage + GSIs + extras. Here's how to cut it: match capacity mode to traffic, prune unused indexes, set TTL, and use Standard-IA for cold tables.
756 articles on cost optimization — what drives the cost, how it is priced, and where the savings actually are.
DynamoDB cost is throughput + storage + GSIs + extras. Here's how to cut it: match capacity mode to traffic, prune unused indexes, set TTL, and use Standard-IA for cold tables.
Comparable compute and storage sit in a narrow band across the three clouds. The real differences are egress, the discounts you'll commit to, and managed services. Here's how to compare apples-to-apples.
The cloud bills nodes; teams consume pods. Here's how to allocate cluster cost by requests or usage, handle shared and idle costs, and where OpenCost/Kubecost and pre-deploy estimation each fit.
Log Analytics bills ~$2.30/GB ingested, the bill is driven by volume, not retention. Here's how to cut it with source filtering, Basic Logs, commitment tiers, and Container Insights tuning.
S3 (~$0.023/GB) is cheapest, EBS (~$0.08) middle, EFS (~$0.30) priciest, but they're not interchangeable. Here's how to match the service to the access pattern and avoid paying 13x by using EFS where S3 would do.
Azure Spot VMs run up to ~90% below pay-as-you-go, evictable with 30 seconds' notice. Here's the eviction model, what workloads fit, AKS Spot pools, and how to design for interruption.
Autopilot bills pod resource requests (~$0.0445/vCPU-hour), not nodes, so oversized requests are the overspend. Here's how to right-size requests, use Spot Pods, and pick compute classes.
VNet peering has no hourly fee but charges ~$0.01/GB each direction (more for global). It bills on both sides. Here's where the cost hides in hub-and-spoke and chatty services, and how to cut it.
Management events' first copy is free; data events ($0.10/100k) on busy S3/Lambda can hit thousands per month. Here's the cost layers and how to scope data events so CloudTrail stays cheap.
EKS cost is control plane ($73/mo) + worker nodes (the bulk) + EBS + load balancers + NAT + cross-AZ transfer. Here's the full breakdown and where the real savings are, almost all in the nodes.
Flexible Server bills compute by tier (Burstable ~$12/mo, General Purpose, Memory Optimized) + storage. HA doubles compute. Here's how to pick the tier, when to skip HA, and how reservations and stop/start cut the bill.
DTU bundles compute/storage/IO simply; vCore separates them and unlocks Azure Hybrid Benefit and reserved capacity. Here's which is cheaper for your database and when to switch.
Container Apps bills per resource-second and scales to zero; AKS bills node VMs 24/7 and gives full Kubernetes. Here's the crossover and when each is the cheaper, simpler choice.
Cloud Functions 2nd gen runs on Cloud Run, so rates converge, but Cloud Run's concurrency lets one instance serve many requests, making it cheaper for request-heavy workloads. Here's how to choose.
Kinesis scales down to a single shard with no real floor; MSK runs brokers 24/7 ($400+/month for a 3-broker cluster). Here's the crossover by throughput and the Kafka-ecosystem angle.
Azure RIs give up to ~72% off a specific VM size; savings plans give up to ~65% across families with full flexibility. Here's which to pick, how they stack with Hybrid Benefit, and why to commit to baseline.
Athena bills $5/TB scanned and costs nothing idle; Redshift bills for a provisioned cluster (~$793/month per node) or per RPU. Here's the crossover by query volume and how table design cuts both.
Transit Gateway is $0.05/hour per attachment (~$36.50/month each) + $0.02/GB. Here's why it costs more than peering, when the hub is worth it (~4-6 VPCs), and how to cut it.
AWS Backup bills mostly for backup storage (GB-month) plus restore and cross-region copy. The bill grows from retention creep. Here's how the meters work and how to keep backups from piling up forever.
App Service Plans bill per instance-hour by tier (B1 ~$13, S1 ~$70, P1v3 ~$120+/mo) times instances. Apps share a plan for free. Here's how to pick the tier and why consolidating apps is the big saving.
Azure CDN is pure caching billed per GB egress with no base fee; Front Door adds load balancing and WAF for a monthly base plus requests. Here's which to use and why cache hit ratio drives the bill.
Persistent disks bill per provisioned GB-month by type: pd-standard ~$0.04, pd-balanced ~$0.10, pd-ssd ~$0.17. Here's which to use, why you pay for provisioned size, and how to stop over-paying for SSD.
Spot VMs run 60-91% below on-demand for the same machine type, preemptible at any time. Here's what belongs on Spot, how it differs from preemptible, Spot GKE pools, and how to design for preemption.
Standard workflows bill $0.025 per 1,000 state transitions; Express bills per request + duration. For high-volume workflows the gap is 50-100x. Here's which to use and why high-frequency Standard workflows blow up.