You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/hosting/compute.md
+195Lines changed: 195 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,3 +33,198 @@ This will be a flat monthly rate for the machine.
33
33
To monitor your projects usage, you can go to the billing tab in the Reflex Cloud UI on the project page.
34
34
35
35
Here you can see the current billing and usage for your project.
36
+
37
+
38
+
## Real Life Examples of compute charges on the Pro tier
39
+
40
+
41
+
```md alert
42
+
# Single Application - Single Region
43
+
44
+
Anna, a hobbyist game developer, built a pixel art generator and hosted it on Reflex Cloud so fellow artists could use it anytime. She deployed her app in the San Francisco region, where she lives. If her users use the site for an hour a day, how much would Anna pay?
Anna's total cost for compute would be `$2.49` for the month. However, since Pro users receive a `$10` credit, her compute cost is fully covered.
61
+
62
+
**Charge for compute:**
63
+
64
+
`$0.00 dollars`
65
+
```
66
+
67
+
68
+
69
+
```md alert
70
+
# Single Application - Multi Region
71
+
72
+
Bob created a social media application and decided to host it on Reflex Cloud. Bob has users in Paris, London, San Jose and Sydney. Bob decided to deploy his application to all those region as well as additional one in Paris since that where Bob lives. If users use the site in each region for 30 minutes a day how much would Bob pay?
- **Regions:** `5` (CDG x 2, LHR x 1, SJC x 1, SYD x 1)
78
+
- **Avg usage per day per region:** `0.5 Hours`
79
+
80
+
**Maths:**
81
+
82
+
`5 regions * 0.5 hours * 30 days = 75 compute hours`
83
+
84
+
`75 * 0.083 = 6.23`
85
+
86
+
(assuming a 30 day month)
87
+
88
+
Bob would owe `$6.23` for this month. However since Bob is a pro user they receive a `$10` credit which brings Bob's bill down to `$0`.
89
+
90
+
**Charge for compute:**
91
+
92
+
`$0.00 dollars`
93
+
```
94
+
95
+
96
+
97
+
98
+
```md alert
99
+
# Single Growing Application - Multi Region
100
+
101
+
Charlie, a small startup founder, built a finance tracking app that allows users to create and share finance insights in real time. As his user base expanded across different regions, he needed a multi-region setup to reduce latency and improve performance. To ensure a smooth experience, he deployed his app on Reflex Cloud using a `c1m2` machine in four regions.
102
+
103
+
If users access the app on average for **16 hours per week** in each region, how much would Charlie pay?
Charlie would owe `$40.19` for this month. However since Charlie is a pro user they receive a `$10` credit which brings Bob's bill down to `$30.19`.
119
+
120
+
**Charge for compute:**
121
+
122
+
`$30.19 dollars`
123
+
124
+
```
125
+
126
+
127
+
128
+
```md alert
129
+
# Single Application High-Performance App - Single Region
130
+
131
+
David, an **AI enthusiast**, developed a **real-time image enhancement tool** that allows photographers to upscale and enhance their images using machine learning. Since his app requires more processing power, he deployed it on a **`c2m2` machine**, which offers increased CPU and memory to handle the intensive AI workloads.
132
+
133
+
With users accessing the app **2 hours per day** over a **30-day month**, how much would David pay?
David would owe `$9.96` for this month. However since David is a pro user they receive a `$10` credit, he will not be charged for compute for this month.
150
+
151
+
**Charge for compute:**
152
+
153
+
`$0.00 dollars`
154
+
155
+
```
156
+
157
+
158
+
```md alert
159
+
# Single Fast Scaling App - Multiple Regions
160
+
161
+
Emily, a **productivity app developer**, built a **real-time team collaboration tool** that helps remote teams manage tasks and communicate efficiently. With users spread across multiple locations, she needed **low-latency performance** to ensure a seamless experience. To achieve this, Emily deployed her app using a `c1m1` machine in **three regions**.
162
+
163
+
With users actively using the app **6 hours per day in each region** over a **30-day month**, how much would Emily pay?
`3 regions * 6 hours * 30 days = 540 compute hours`
175
+
176
+
`540 * 0.083 = 44.82`
177
+
178
+
(assuming a 30 day month)
179
+
180
+
Emily would owe `$44.82` for this month. However since Emily is a pro user they receive a `$10` credit which brings Emily's bill down to `$34.82`.
181
+
182
+
**Charge for compute:**
183
+
184
+
`$34.82 dollars`
185
+
186
+
```
187
+
188
+
189
+
```md alert
190
+
# Multiple Apps - Multiple Regions
191
+
192
+
Fred, a **freelance developer**, built a **portfolio of web applications** that cater to different clients across the globe. He has built **5 apps** where **4 apps** have a small amount of traffic with an average of **0.5 hours a day** and **1 app** that has a high amount of traffic with an average of **6 hours** a day. He has deployed the 4 small traffic apps on a `c1m1` machine in **1 region** each and the high traffic app on a `c1m1` machine in **2 regions**. How much would Fred pay?
Fred would owe `$34.86` for this month. However since Fred is a pro user they receive a `$10` credit which brings Fred's bill down to `$24.86`.
224
+
225
+
**Charge for compute:**
226
+
227
+
`$24.82 dollars`
228
+
```
229
+
230
+
One thing that is important to note is that in the hypothetical example where you have `50 people` using your app `continuously for 24 hours` or if you have `1 person` using your app `continuously for 24 hours`, you `will be charged the same amount` as the charge is based on the amount of time your app up and not the number of users using your app. In `both these examples` your `app is up for 24 hours` and therefore you will be `charged for 24 hours of compute`.
0 commit comments