Bubble Workload (1/3) - Understanding Workload
Understanding Workload in Bubble Apps
What is Workload?
- Workload represents the server resources required to host, run, and scale applications built on Bubble. It simplifies resource management by aggregating various technical metrics traditionally monitored by software development teams.
- Instead of managing complex infrastructures with multiple systems (servers, networking, storage), workload consolidates these into a single metric: workload units. This metric tracks the total server work consumed by an app.
How Workload Units are Calculated
- Each month, Bubble calculates the total workload based on different activity types that contribute to overall consumption. The calculation resets at the beginning of each new month.
- Activities have starting costs in workload units; for example, a database search costs 0.3 units while deleting an item costs 0.1 units. A full list of activities and their respective costs can be found in the manual.
Client-Side vs Server-Side Operations
- It's crucial to differentiate between client-side and server-side operations when considering workload. Client-side actions (like setting custom states with basic data) do not incur any workload since they don't involve server interaction.
- Conversely, if a client-side action requires fetching data from the server (e.g., using custom data types), it incurs a workload cost due to additional server processing involved.
Complexity and Cost Calculation
- The complexity of operations affects final workload calculations; while activities have base costs, additional complexities increase total usage.
- For instance, displaying user lists requires fetching data from the server (incurring cost), but selecting items within that list can be done client-side without incurring extra charges.
Importance of Understanding Workload
- Grasping how workload functions is essential for optimizing app performance and scaling effectively based on actual usage rather than assumptions about operation costs.
- For further details on understanding workload and its components, users are encouraged to consult the manual for comprehensive insights into activity types and their implications on resource consumption.
Turn any video into a summary like this
YouTube links, meetings, lectures. With transcripts, search, and chat.