Next.js Discord

Discord Forum

What is faster?

Answered
Pont-Audemer Spaniel posted this in #help-forum
Open in Discord
Pont-Audemer SpanielOP
What would actually be faster and more cost effective?
1. Using sst.dev in serverless
2. Buying a hetnzer vps with around 4gb of ram to host it with nginx.
I am mainly looking for faster response time since I am pretty small and cost won't be much either way. Also if I do go with the vps how should I handle the cdn ? Thanks!
Answered by linesofcode
If you don’t know what to choose then choose the simplest option that will maximize your productivity in the short term
View full answer

23 Replies

Pont-Audemer SpanielOP
bump
2
But it depends on what you’re optimizing for and how experienced you are
Response times are dependent on what you’re doing
I would personally go with vercel
Then sst
And only then would I choose a vps
If you don’t know what to choose then choose the simplest option that will maximize your productivity in the short term
Answer
@linesofcode I would personally go with vercel
Pont-Audemer SpanielOP
I already used vercel and really liked how fast and easy it was to setup but I need a bunch of background jobs like cron jobs so I tried sst but found it really confusing so I was thinking of using amplify but then I rememberd I could just use a vps. However I already tried to setup nextjs on pterodactyl with a bad vps but it was extermely slow compared to vercel so that's why I am kinda worried about speed. I didn't have a cdn on top of the pterodactyl (which isn't really made for hosting) so that may have an impact or maybe just hosting on a vps is slow?
Trigger.dev for your cron job needs
Avoid amplify
@linesofcode Avoid amplify
Pont-Audemer SpanielOP
Is there a reason for this ?
@linesofcode Trigger.dev for your cron job needs
Pont-Audemer SpanielOP
I mean I need webhooks too so idk if this is really the best way ? And I would need to upgrade to the 25/month tier which I find kinda steep
It doesn’t fully support nextjs 13 app dir
And is just a generally shitty experience
Compared to vercel or even sst
@linesofcode It doesn’t fully support nextjs 13 app dir
Pont-Audemer SpanielOP
I am using t3 stack with trpc so I don't really need that
@linesofcode And is just a generally shitty experience
Pont-Audemer SpanielOP
Yea I heard that from some people
I use it at work. It’s not good.
Pont-Audemer SpanielOP
But honestly the main question is if I put a cdn infront of the vps would I have comparable speed to vercel ? Also what cdn do you recommend
Idk sorry
Pont-Audemer SpanielOP
That's ok you already helped a lot Thanks!
Good luck!