This post has been imported from my previous blog. I did my best to parse XML properly, but it might have some errors.
If you find one, send a Pull Request.
Recently I’ve been playing with Azure Functions. Probably, I should use a bigger word than “playing”, because I implemented a full working app using only functions. 4$ , that was all that I needed to pay for the whole month after running some synthetic load through the app. I spent a few additional hours just to make it 3$ next month. You could ask, what’s the reason. Read along.
Moving to cloud is getting easier and easier. With the new backendless (let’s stop calling it serverless) you can actually chop your app into pieces and pay only when they are run. More than this. You’ve got everything monitored, so effectively you can see where you spend your money. If you’re crazy enough, you could even modify the workflow of your app, to make the heavy work at the end of a chain, to postpone it till a user really needs it. Still, these optimizations and thinking don’t seem to be popular this days (or at least I haven’t seen it popping up that frequently).
The synthetic load I used to stress the app was simulating a single not that active user. A real usage would be probably much higher, with the price being much bigger. Effectively, instead of treating this optimizations as 1$ only, I could say that I cut the cost by 25%. Now this was only an experiment, but think about it again. A dummy, fast implementation was cheap, but with some additional work I could have done it more profitable. If a price for the cheapest option would be 5$, these are some real gains. These are differences that can make you either profitable or bankrupted.
Interested in learning more about topics like this? Click here to join my newsletter. No spam. Meaningful content only.
In past years developers weren’t dealing with money. Servers were there, sometimes faster, sometimes slower. Databases were there, spending countless hours on running our not optimized queries. This time is ending now. Our apps will be billed and it’ll be our responsibility to earn money by making them thinner and faster. Welcome to the cost aware era of software engineering.
There's another gain too - performance. So many times see functionality implemented using ORM where hundreds of statements go to the server in only one usage of that function. Most probably developer wasn't aware of the situation since on his dev environment those 100 statements were quick, but on production it might go in millions, which of course making unwanted load of our servers and cause the application runs slower and slower. Now you pays for each query/CPU/RAM usage and very quickly it will be shown as a costly pain such unperformant solution. I hope that cloud applications will use their resources effectively.by slawomirbrys at 2017-11-16 07:18:54 +0000
Valid point. We're paying for libs as well.by Szymon Kulec 'Scooletz' at 2017-11-17 08:36:48 +0000
I just love the way how the reponsibility for taking care of costs is now also on devs. You should really be aware how much money company pays to run your solution.by Kamil Mrzygłód (@Kamil_Mrzyglod) at 2017-10-30 09:45:15 +0000