cut our aws bill by 67% by moving compute to the edge

Our aws bill was starting to murder us, $8k a month just in data transfer costs, $15k total.

We run an IoT platform where devices send data every few seconds straight to kinesis then lambda. Realized we were doing something really dumb, sending massive amounts of raw sensor data to cloud, processing it, then throwing away 90% of it. Like sending vibration readings every 5 seconds when we only cared if it spiked above a threshold or location updates that barely changed, just completely wasteful. We started processing data locally before sending to cloud, just basic filtering, take 1000 vibration readings per minute, turn them into min/max/avg, only send to cloud if something looks abnormal. We used nats which runs on basic hardware but took 4 months to rebuild, we moved filtering to edge, set up local alerts and went from 50gb per day to 15gb.

Data transfer dropped from $8k to $2.6k monthly that’s $65k saved per year, lambda costs went down too, we paid for the project in under 6 months. Bonus is if aws goes down our edge stuff keeps working, local dashboards and alerts still run. We built everything cloud first because that’s what everyone does but for IoT keeping more at the edge makes way more sense.


Related discussions:

Bandwidth is the money killer nobody ever talks about. Refreshing to see.

I did similar work myself, working with tools that metered tonnage on a conveyor based on its vibration. The amount of data involved can be astronomical.

Kudos for finding a clever solution!

You should cross-post this to r/FinOps

Quick, someone tell Eight Sleep!

You might also want to look at Cloudflare workers. We were collecting massive amounts of data and switched over to POST requests into Cloudflare workers that we then re-POSTED into AWS eliminating bandwidth charges.

Also important to know how much you spent in human hours, as this metric is often omited.

Can u also share more of your amazonkin learning op? I plan to make security camera , with ai security for home use so , i am looking on aws iot and kineses, i do plan to leave as much as computation possible on hardware tbh

For vibration, I’m curious you would wake up the device to take measurements this frequently. Pretty much every modern vibration / temp sensors for anomaly detection does a wake on event or wake up every hour to take measurements. Saves a lot on bandwidth and data processing but also battery life of the device

Anytime I read some thing like this I fail to understand why people don’t just run a server normally… lol

Thats a novel idea. Very cool.

We started processing data locally before sending to cloud

how much worse is the user experience though? using more ram/cpu locally carries a risk of slowing down your product, using more battery, heating it up, etc.etc. seems like youre just sweeping the problem under the rug

You’ll get downvoted because thou shall not speak ill will of aws or serverless…

Could be strictly better - like if it’s connected over cellular, a bit of cpu is way preferable to firing up the radio to actually send the data…

Data-in is free right? Where are you incurring data transfer costs?

This is a great example of smart computing. Only process the data you need and do it as close to the source as possible.

Because collecting sensor data is a little more involved than just setting up a server.

AWS also charges ridiculous amounts of money for bandwidth. At some places I think it’s something like $20/TB. At Hetzner I pay 1€/TB

Because to replace Kinesis you have to run multiple clusters of servers in multiple data centers?

Huh?

Clown world