AWS bill went nuts last quarter. Finance was breathing down our necks for it. It was for our internal Lambda functions. Nothing critical, just some background tasks. But a 30% jump in a quarter? That's genuinely mad. We checked logs, tried to figure it out. Usage looked normal. Everyone was scratching their heads, frankly. Then I thought about my own personal serverless website. I'm always tweaking Lambda memory there to keep costs near zero. Realized many of our company's I/O-bound functions were provisioned at 512MB. Way too much. CPU scales with memory, so even if the function is just waiting, you're paying more for duration. Dropped most of those Lambdas to 128MB. Immediate bill drop. We saved thousands in AWS spend, just like that. Funny how obsessing over your $5 personal infra teaches you the real tricks for company-level cost cuts. #AWSCostOptimization #Lambda #Serverless #DevOps
Optimizing AWS Lambda Costs with Memory Reduction
More Relevant Posts
-
Serverless changed how I think about infrastructure. Not just how I deploy it. The mental shift: Before: "I need a server. How big? How many? What happens when it goes down?" After: "I need a function. AWS handles the rest." What that actually means in practice: → No servers to provision or maintain → Scales to zero — you pay nothing at idle → Scales to millions — no re-architecture, no pre-planning capacity → Cold start is the main trade-off (milliseconds for Lambda, acceptable for async workloads) → Deploy with one command: `sam deploy` The thing nobody tells you up front: Serverless does not remove complexity. It moves it. You stop managing servers and start managing IAM policies, cold start behaviour, invocation limits, and concurrency quotas. The ops surface changes shape — it does not disappear. But for a notification system that fires on-demand with unpredictable traffic spikes? Lambda is the right primitive. A persistent server sitting idle to handle occasional traffic is an expensive solution to a simple problem. The hardest part of adopting serverless was not the tooling — it was unlearning the "server first" default. What was the decision that made serverless click for you? #AWS #Serverless #CloudComputing #BackendEngineering #SystemDesign
To view or add a comment, sign in
-
An AWS bill jumped 40% in a single month 😮 There weren’t any new workloads. No architectural changes. Nothing obvious. Pulled up Cost Explorer and found it pretty quickly. NAT Gateway data processing had nearly tripled in six weeks. Turns out, a logging pipeline misconfigured to route all app logs through the NAT instead of a VPC endpoint. $4,200/month going nowhere. Fixed in about 45 minutes once we knew where to look. The part that stuck with me though, nobody had billing alerts set up. 😬 Setting up billing alerts is a day zero job, and if your bill is about to go out of hand, it’s the first line of defence for you to go looking what’s up before your services come for your wallet. The assumption of “steady usage, steady cost” is rarely true in AWS. DM me and I’ll send you the checklist I use for these reviews. No catch. 👍 #AWS #CloudCost #FinOps #DevOps
To view or add a comment, sign in
-
Update on last week's confession: it got worse. 🔥 I told you Major Tom found $6,000/year of waste on our own AWS account. Then a few of you asked the obvious question: one-off, or pattern? Pattern. This week he flagged an RDS instance sitting in our dev account. Multi-AZ, quietly humming along, ~$10,000/year. We spun it up for a PoC months ago, moved on, and never touched it since. No alerts. No spike. Just a flat line of spend hiding in plain sight. That's the sneaky thing about PoC infrastructure: it's rarely wrong on day one. Someone genuinely needed it. But the moment the experiment ends, the context leaves with the engineer - and the bill keeps coming. Multiply by every dev account, every team, every half-finished idea from last year. Major Tom read the bill, cross-referenced 90 days of zero connections, flagged it, and proposed a snapshot-and-delete. I approved. Done. $16,000/year of structural waste found on our own account in two weeks - by the finance guy. 👉 The friendly bet still stands. One minute to onboard, zero infrastructure changes, and Major Tom will tell you exactly where your money is hiding. https://blocks.cloud
To view or add a comment, sign in
-
🚀 Game changer: Amazon Web Services (AWS) S3 buckets can now be mounted as a native file system 📖 Official AWS blog: https://lnkd.in/gEKFSAms Note: In comment added two links - "right use case" ❗ After 20 years of S3 being object-only storage, AWS just shipped Amazon S3 Files - and it changes how we architect on AWS entirely. Until now, if your app needed file-system access to data in S3, you had to copy it to EFS, wrestle with s3fs-fuse hacks, or write glue code. Not anymore. ✅ Mount any S3 bucket as a file system on EC2, ECS, EKS, and Lambda ✅ Full NFS v4.1/4.2 support - create, read, update, delete, file locks ✅ Sub-millisecond latency for hot data, backed by EFS infrastructure ✅ Up to 25,000 simultaneous connections per bucket ✅ S3 objects appear as files & directories - zero code changes needed ✅ Writes auto-sync back to S3 - one source of truth, always This is huge for ML training pipelines, AI agents, and legacy apps that speak POSIX - they can now read directly from S3 without any middleware. The best part? S3 is still your single source of truth. Access it via S3 API and as a file system simultaneously. Went GA on April 7, 2026 across all commercial AWS regions. 🎉 #AWS #CloudComputing #S3 #DevOps #AWSCloud #CloudArchitecture #MLOps
To view or add a comment, sign in
-
-
Been playing with Amazon Web Services (AWS) Kiro IDE, as suggested to me by Matt Kingston from his attendance at the AWS conference in London. Spec-driven development makes a lot of sense to me as a product person and brings a level of structure. A lot of interesting tools are coming into play.
To view or add a comment, sign in
-
It’s 3:00 AM. Your phone glows with an email that isn't a PagerDuty alert. It’s from AWS Billing: “Your spending has exceeded the forecasted budget by 2,000%.” In just 72 hours, a quiet development environment spiked from $400 to $10,400. You haven’t been hacked. You haven’t been DDoS’d. You’ve just been hit by the Serverless Bill Shock. The Seductive Promise 🍯 We moved to AWS Lambda for the "Serverless Dream": Idle: $0. Traffic Spike: Scale infinitely. The Pitch: "Pay only for what you use." But there is a corollary they don't put in the marketing slides: If you use it wrong, you will pay for your mistakes—infinitely. The "Infinite Loop" Disaster 🔄 In a traditional server, a bad code loop hits 100% CPU and the site slows down. Cost impact: $0. In Serverless, the cloud doesn't slow down; it happily spins up 1,000 more instances to handle your "demand." Our Architecture "Crime Scene": The Trigger: A user uploads a ZIP to an S3 bucket. The Action: A Lambda function unzips the files and writes them back to a subfolder. The Fatal Flaw: The Lambda was set to trigger on every new file in that bucket—including the ones it just unzipped. The Chain Reaction: 1 ZIP becomes 100 PDFs. Those 100 PDFs trigger 100 new Lambdas. Those Lambdas "process" the PDFs and move them—triggering thousands more. Within 4 hours, we weaponized the cloud’s unlimited scale against our own bank account. The Hard-Won Lesson 💡 The real killer wasn't just the compute—it was the CloudWatch Logs generated by the millions of error messages, costing 30x more than the Lambda itself. The Fix? Never trigger a Lambda from the same bucket it writes to. Use separate "Source" and "Destination" buckets to break the recursion. I’ve released the full "Financial Forensics" of this $10k mistake. Read the breakdown in the comments. ⬇️ #SystemDesign #AWS #Serverless #FinOps #SoftwareEngineering #CloudComputing #Architecture
To view or add a comment, sign in
-
BREAKING Update !!! from AWS: S3 Just Got a Major Upgrade Since its launch in 2006, Amazon S3 has been the backbone of scalable storage. But teams always had to compromise: ➡️ Use S3 for cheap, scalable object storage ➡️ Or use EFS/EBS for file system flexibility You couldn’t get both in one place. So what did we all do? We copied data. Built sync pipelines. Maintained duplicate storage. And wrote custom glue code just to make things work. That “data movement tax” has been a daily pain point for DevOps and MLOps teams for years. 💥 Now AWS is changing the game. With the new capability (like Mountpoint for S3 / file-like access), you can interact with S3 much more like a file system. 🔹 Access S3 buckets with file semantics 🔹 Multiple compute services (EC2, ECS, EKS, Lambda, Fargate) can work on the same data 🔹 Reduced need for duplication or sync pipelines What this means in real-world use cases: For MLOps: Train models directly on S3 data without copying it into separate storage layers → faster pipelines, lower cost, less complexity. For AI Agents: Agents can share state using standard file structures (directories, logs, notes) directly on S3 → simpler coordination. 💰 AWS claims this approach can reduce costs significantly by eliminating redundant storage and data transfers. Explore: 🔹 AWS Mountpoint for S3 (GitHub): https://lnkd.in/gm3UVT26 🔹 AWS Blog (official announcement & deep dive): https://lnkd.in/ghyq6c2i 🔹 Documentation: https://lnkd.in/gfFBtCyF 🎥 AWS Official Video: https://lnkd.in/gThXUpaa Curious to hear your thoughts — is this a real game-changer or just an incremental improvement? #AWS #S3 #MLOps #DevOps #Cloud #AI #Infrastructure #TechUpdates Amazon Web Services (AWS)
To view or add a comment, sign in
-
-
I just paid ₹16,086 for a lesson I could have learned for free—well, almost.💸 I recently finished an end-to-end RAG application using AWS Bedrock, OpenSearch, S3, and EC2. The project was a success, but I made the rookie mistake of walking away without hitting "Delete.” Luckily, the cloud gods had mercy: AWS waived the bill as a one-time gesture after I explained it was a configuration oversight. Consider this my lucky break and your final warning! 💡 Pro-tips for my fellow devs: • Tag Everything: Use Resource Tagging (e.g., Project: RAG-Demo). It’s the only way to track which specific service is bleeding your wallet in a complex stack. • Billing Alarms: Set a CloudWatch alarm at $10. If you don't, you’re essentially handing AWS a blank check. • OpenSearch Costs: These instances are "always-on." Switch to Serverless for dev work or terminate them the second you’re done. • The "Clean Up" Ritual: S3 storage is pennies, but running EC2 and vector databases will eat your rent. Delete the stack once the demo is over. #AWS #CloudComputing #RAG #GenerativeAI #DevOps #ExpensiveLessons #AWSBilling
To view or add a comment, sign in
-
-
"Did enough people start using these servers to buy me a decent steak?" Early AWS evangelist Jeff Barr used to wonder this after long days on the road pitching 10-cent-per-hour compute. Two decades later: $129B in annual revenue, the fastest-growing AI platform in AWS history (Bedrock), and infrastructure bets that are reshaping the industry. GeekWire's Todd Bishop captures the full arc—from the 2003 six-pager to today's frontier agents.
AWS at 20*: Inside the rise of Amazon's cloud empire, and what's at stake in the AI era geekwire.com To view or add a comment, sign in
-
"Did enough people start using these servers to buy me a decent steak?" Early AWS evangelist Jeff Barr used to wonder this after long days on the road pitching 10-cent-per-hour compute. Two decades later: $129B in annual revenue, the fastest-growing AI platform in AWS history (Bedrock), and infrastructure bets that are reshaping the industry. GeekWire's Todd Bishop captures the full arc—from the 2003 six-pager to today's frontier agents.
AWS at 20*: Inside the rise of Amazon's cloud empire, and what's at stake in the AI era geekwire.com To view or add a comment, sign in