# App optimisation - Save money by reducing amount of workflows

**URL:** <https://forum.bubble.io/t/app-optimisation-save-money-by-reducing-amount-of-workflows/96660>\
**Category:** Questions\
**Created:** [June 11, 2020, 2:49pm UTC](https://forum.bubble.io/t/app-optimisation-save-money-by-reducing-amount-of-workflows/96660 "2020-06-11T14:49:52Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![bralca88](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bralca88/32/60533_2.png) [@bralca88](https://forum.bubble.io/u/bralca88)\
**Post date:** [June 11, 2020, 3:18pm UTC](https://forum.bubble.io/t/app-optimisation-save-money-by-reducing-amount-of-workflows/96660/3 "2020-06-11T15:18:08Z")

</div>

Sure! The basic idea is that when you use the Bubble data API you use the CPU and not a Workflow. I use it a lot for doing calculations or even writing and reading from the database.

I do this by using a Node.js module I have created (which uses Bubble Data API). One recent example of how I used this is for an ecommerce website I am building. I have a list of products which I want to put in a box (which is the item I want to sell in the ecommerce). Every time I put a new product in a box that I am creating I want to know the total cost of the box, total weight and shipping cost. To do that I don’t run crazy workflows, I just make an API call to my Node.Js backend sending the boxID, I read all the data I need about the products, do all the calculations and then I write/update the data in the database. Like this I use only one workflow instead of… well I don’t know how many I would need to do all that, but they are a lot. If you have a decent amount of users creating boxes the app will become pretty expensive quite soon if you would implement all that logic using workflows.

---

_[View the full topic](https://forum.bubble.io/t/app-optimisation-save-money-by-reducing-amount-of-workflows/96660)._
