THE RIGHT DEPLOYMENT
Unanswered
Bengal posted this in #help-forum
BengalOP
I am not sure it's the best place to ask this question but I am really confused about reading hundreds of articles and comments.
I am creating my own project with Nextjs and I am still not sure what is the best option for hosting it.
My requirements and confusions
- I will have a real-time chat feature in my app and avoid using
- Alternative hosting as per docs -
I want to hear your opinion and what practices have you had so far?
I am creating my own project with Nextjs and I am still not sure what is the best option for hosting it.
My requirements and confusions
- I will have a real-time chat feature in my app and avoid using
Pusher
, Ably
or other 3rd party provider for cost deduction. I know that Vercel works the best for hosting Next.js app but Vercel's serverless architecture doesn't give us capability of using WebSockets.- Alternative hosting as per docs -
Next.js can be deployed to any hosting provider that supports Node.js.
. On one hand that works for my case ( But still not sure about other hosting environments - Amplify, Cloudflare and etc. - which one is the best with Next.js? ), on the other hand Vercel gives us better performance. Again as per docs - Deploying to Vercel is zero-configuration and provides additional enhancements for scalability, availability, and performance globally
.I want to hear your opinion and what practices have you had so far?
15 Replies
u can purchase a very good server in germany for like 5 euro a month
where u can host your nextjs app and your nodejs app for your realtime things u want to do
everything else is overpriced
u can host your nextjs app on vercel even
BengalOP
Maybe I haven't explained my concern properly.
As I mentioned, I can't use sockets on Vercel because of it's serverless nature. So I need to use other provider, but not sure which one to pick because of different assumptions on the development forums.
There are different opinions around this topic and different hosting providers respectively. Cloudflare, AWS Amplify, AWS Beanstalk, Digital Ocean, Fly.io and many others. I know I can use all of them, but all of them have their own pros and cons, that's what confuses me.
My goal is - almost equal performance like Vercel, No additional cost, Should support all Nextjs 15 features.
As I mentioned, I can't use sockets on Vercel because of it's serverless nature. So I need to use other provider, but not sure which one to pick because of different assumptions on the development forums.
There are different opinions around this topic and different hosting providers respectively. Cloudflare, AWS Amplify, AWS Beanstalk, Digital Ocean, Fly.io and many others. I know I can use all of them, but all of them have their own pros and cons, that's what confuses me.
My goal is - almost equal performance like Vercel, No additional cost, Should support all Nextjs 15 features.
well i know u cant use websockets on vercel š
I told u to just purchase a server and u good
I told u to just purchase a server and u good
u cant get equal perfomance without additional costs
thats why serverless is cheaper and nextjs is built for serverless
if u want realtime features, either u go with something like pusher or u implement your own server and host it on aws or some random serverfull provider
if u are a private person -> purchase a small server and implement your own
if u are a mid or small startup -> go with aws or similar
if u are a big company -> either u also go with aws (custom deals) or u go on-premises
if u are a mid or small startup -> go with aws or similar
if u are a big company -> either u also go with aws (custom deals) or u go on-premises
now in your case, if u want to save money, purchase a small vps and u good
prepaid servers is the way, everything else is scam
this is literally a scam
BengalOP
Thanks for the details about pricing.