Cost Analysis for hosting a ecommerce with Nextjs
Unanswered
Salman posted this in #help-forum
SalmanOP
I will soon create a e-commerce with Nextjs. How many users can Vercel pro plan handle? Specially Concurrently? If there is any cheaper option, What will it be?
32 Replies
@Salman I will soon create a e-commerce with Nextjs. How many users can Vercel pro plan handle? Specially Concurrently? If there is any cheaper option, What will it be?
You can see the limit for each plan here: https://vercel.com/docs/analytics/limits-and-pricing
I would recommend you using google analytics. It has more data features and less costs. For me it’s perfect 🙂
I would recommend you using google analytics. It has more data features and less costs. For me it’s perfect 🙂
Toyger
depends on your site, it's just about which limit you'll hit first, for data heavy site it will be bandwith, for some complex business logic probably edge/serverless functions and so on, they just have limits, and you'll just hit some limit eventually and will pay additionally for this.
for e-commerece still depends on how performant your code, maybe single user that just looking for products will use 10k function invocations throught session, or maybe if it super performant it will be something around 100 functions.
basically you need to upload site and tes it with couple users and check your stats, then calculate how many users you can serve in a month.
for e-commerece still depends on how performant your code, maybe single user that just looking for products will use 10k function invocations throught session, or maybe if it super performant it will be something around 100 functions.
basically you need to upload site and tes it with couple users and check your stats, then calculate how many users you can serve in a month.
yea, maybe also the user amount, that you serve is not that big, then you might want to use the free one from vercel ðŸ‘
@Salman fixed?
SalmanOP
Thanks everybody for you time.
I didn't got my answer. But I think it is pretty hard to assume before hand.
SalmanOP
Can we safely assume it can handle at least 30k monthy user?
yes, it easily can. To think about the costs, that you asked for is a different topic if it can handle it. Depending on your website the calls can be easily be at 50.000 - >100.000 requests. So you need at least the Pro Plan @Salman
this is what I have for the last 30 days for devographics surveys
so 65 visitors
*65k ^^
we are at the start of the billing period so the charts are not super helpful
but anyway
- we reach the analytics limit, Plausible is probably cheaper
- we reach middleware invocation limit but they are cheap (like it adds a few euros to the bill, it's negligible)
- we don't reach bandwidth limit but for an ecommerce it may happen
- you probably won't reach CPU/exec time limits with an ecommerce
so I'd say be careful with images optimization maybe
but 30k monthly seems doable on the pro offer
@Eric Burel Click to see attachment
SalmanOP
Thanks for your detailed answer. It is much clear now.
So if I use a CDN for images and videos we can save more bandwith right?
So if I use a CDN for images and videos we can save more bandwith right?
@Salman Thanks for your detailed answer. It is much clear now.
So if I use a CDN for images and videos we can save more bandwith right?
yes, you should a cdn for images and videos
@Salman Thanks for your detailed answer. It is much clear now.
So if I use a CDN for images and videos we can save more bandwith right?
you can trade bandwith for image compression via the Image component
but I've never actually used it in prod
we indeed use a separate host for some images if I remember correctly
namely open graph images
cause they are triggered from social network so decorrelated from your nb of visitors
when unoptimized they destroy our bandwith lol
I guess for videos you need a specialized solution indeed
since they play in another category in terms of bandwith
SalmanOP
@B33fb0n3 and @Eric Burel Thanks both of you for your time and advice 🙂