Next.js Discord

Discord Forum

Capabilities of Nextjs

Answered
Cuban Crocodile posted this in #help-forum
Open in Discord
Cuban CrocodileOP
hi guys,
i am new to nextjs and just want to know the capabilities of it so i have a bunch of questions.

Q1- are apis going to be like serverless function or proper server apis
Q2- can i create socket connections using nextjs
Q3- is nextJs a frontend framework or full stack? is there any place it falls short as compared to like express or something in backend functionality
Q4- is there a dumbed out guide that even i can follow (i just know basic react and basic express)

i would really appreciate if someone can answer or give me a link to follow
thanks guy
Itachi Uchiha
Answered by @ts-ignore
Q1

If you are hosting on a platform like Vercel then they will be serverless functions but if you self host in a serverful environment, its gonna be just like any other express api

Q2
If you are talking about socket server then if you are hosting on vercel, the answer is no else yes. Socket client connects using browser APIs so it will just work

Q3
Full stack. Running long running tasks in a serverless environment

Q4
You can follow the [official learn page](https://nextjs.org/learn)
View full answer

7 Replies

@Cuban Crocodile hi guys, i am new to nextjs and just want to know the capabilities of it so i have a bunch of questions. > Q1- are apis going to be like serverless function or proper server apis > Q2- can i create socket connections using nextjs > Q3- is nextJs a frontend framework or full stack? is there any place it falls short as compared to like express or something in backend functionality > Q4- is there a dumbed out guide that even i can follow (i just know basic react and basic express) i would really appreciate if someone can answer or give me a link to follow thanks guy Itachi Uchiha
Q1

If you are hosting on a platform like Vercel then they will be serverless functions but if you self host in a serverful environment, its gonna be just like any other express api

Q2
If you are talking about socket server then if you are hosting on vercel, the answer is no else yes. Socket client connects using browser APIs so it will just work

Q3
Full stack. Running long running tasks in a serverless environment

Q4
You can follow the [official learn page](https://nextjs.org/learn)
Answer
Cuban CrocodileOP
wow man thanks
what do you mean by running task tho?
@Cuban Crocodile what do you mean by running task tho?
long running tasks like a socket server etc
Cuban CrocodileOP
ohh so it wont be able to create socket connections in serverless enviorenment like i can't host it on vercel?
you can use a service like pusher or ably for socket
Cuban CrocodileOP
thanks man. i am not really using a socket connection for current project but wanted to know the limits of nextjs.

i appriciate you help sir