simplenotezy
CDCloudflare Developers
•Created by simplenotezy on 6/12/2024 in #workers-help
Pricing running a graphql server on Workers vs Node.js
Interesting, thanks for the heads up.
Currently using this library:
https://github.com/kimyvgy/worker-apollo-server-template
6 replies
CDCloudflare Developers
•Created by simplenotezy on 6/12/2024 in #workers-help
Pricing running a graphql server on Workers vs Node.js
I've asked ChatGPT and this is it's response:
```
#### Cloudflare Workers:
- Requests: 100 million - 100,000 free = 99.9 million requests.
- 99.9 million requests / 1 million * $5 = $499.50
- Data Transfer: Let's assume $0.10 per GB.
Total: $499.50 + $0.10 = $499.60
#### Google Cloud Run:
- Requests: 100 million - 2 million free = 98 million requests.
- Requests cost: 98 million / 1 million * $0.40 = $39.20
- Compute Time: 100ms per request * 100 million requests = 10 million seconds.
- Compute cost: 10 million / 3600 (hours) * $0.00002428 per vCPU second (assuming 1 vCPU) = $67.44
- Memory Cost: Assuming 256MB memory per instance.
- Memory cost: 10 million seconds * 0.0000025 per GB-second (256MB is 0.25GB) = $25.00
- Data Transfer: Assuming $0.12 per GB.
Total: $39.20 + $67.44 + $25.00 + $0.12 = $131.76
#### AWS Lambda:
- Requests: 100 million - 1 million free = 99 million requests.
- 99 million / 1 million * $0.20 = $19.80
- Compute Time: 100ms per request * 100 million requests = 10 million GB-seconds.
- Compute cost: 10 million GB-seconds - 400,000 GB-seconds free = 9.6 million GB-seconds.
- 9.6 million * $0.00001667 per GB-second = $160.83
- Data Transfer: Assuming $0.09 per GB.
Total: $19.80 + $160.83 + $0.09 = $180.72
Percentage Comparison
We'll use the highest cost (Cloudflare Workers) as the reference point.
1. Cloudflare Workers: $499.60
2. Google Cloud Run: $131.76
3. AWS Lambda: $180.72
Highest cost is Cloudflare Workers: $499.60
- Cloudflare Workers: ($499.60 / $499.60) * 100 = 100%
- Google Cloud Run: ($131.76 / $499.60) * 100 ≈ 26.38%
- AWS Lambda: ($180.72 / $499.60) * 100 ≈ 36.17%
Summary
- Cloudflare Workers: 100%
- Google Cloud Run: 26.38%
- AWS Lambda: 36.17%
6 replies
CDCloudflare Developers
•Created by Jaren on 2/17/2024 in #general-discussions
Protecting game server with spectrum
18 replies
CDCloudflare Developers
•Created by Jaren on 2/17/2024 in #general-discussions
Protecting game server with spectrum
True, that's odd!
18 replies
CDCloudflare Developers
•Created by Jaren on 2/17/2024 in #general-discussions
Protecting game server with spectrum
Got: RDP, TCP, HTTP, HTTPS, SSH, RDP
18 replies
CDCloudflare Developers
•Created by Jaren on 2/17/2024 in #general-discussions
Protecting game server with spectrum
But don't got such option
18 replies
CDCloudflare Developers
•Created by Jaren on 2/17/2024 in #general-discussions
Protecting game server with spectrum
BFBC2 uses UDP
18 replies
CDCloudflare Developers
•Created by Jaren on 2/17/2024 in #general-discussions
Protecting game server with spectrum
are you associated with CF btw?
18 replies
CDCloudflare Developers
•Created by Jaren on 2/17/2024 in #general-discussions
Protecting game server with spectrum
ahh
18 replies
CDCloudflare Developers
•Created by Jaren on 2/17/2024 in #general-discussions
Protecting game server with spectrum
Some minecraft servers actually make enough money to justify using CF?
18 replies
CDCloudflare Developers
•Created by Jaren on 2/17/2024 in #general-discussions
Protecting game server with spectrum
I love it has a "minecraft" option
18 replies
CDCloudflare Developers
•Created by Jaren on 2/17/2024 in #general-discussions
Protecting game server with spectrum
Yeah just found it!
18 replies
CDCloudflare Developers
•Created by Jaren on 2/17/2024 in #general-discussions
Protecting game server with spectrum
Thanks for your reply! I actually have an enterprise account for a project so would be fun to run just for a small test. How would I get started with this?
18 replies
CDCloudflare Developers
•Created by simplenotezy on 8/22/2022 in #general-discussions
I m writing here in distress as all of
Still not sure if we can re-enable the "proxy" to cache images from our GCS bucket or not. Or if we need to enable the
cf.image
property in the request to bypass the throttle.38 replies
CDCloudflare Developers
•Created by simplenotezy on 8/22/2022 in #general-discussions
I m writing here in distress as all of
38 replies
CDCloudflare Developers
•Created by simplenotezy on 8/22/2022 in #general-discussions
I m writing here in distress as all of
I am paying for Workers @zeblote so I beleive not
38 replies