Replies: 2 comments 2 replies
-
Hello! Your industrial monitoring project is definitely feasible with Next.js and Vercel. According to the official documentation, here are the important technical considerations: ✅ What IS possible:API Routes to receive dataNext.js App Router supports Route Handlers that can handle HTTP POST requests from your controller: // app/api/machine-data/route.ts
export async function POST(request: Request) {
const data = await request.json()
// Process controller data
return Response.json({ success: true })
} Official Vercel Functions limitations:
|
Beta Was this translation helpful? Give feedback.
-
Great follow-up question! Based on the official Vercel documentation, here are the exact timeout limits you need to consider: 🕐 When functions timeout (official limits):Serverless Functions:
With Fluid Compute enabled:
Edge Functions:
✅ Your current setup (every 10 seconds):Since your program runs every 10 seconds for hours, you are likely using:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
So I want to record and monitor an industial machine using a controller to send machine's condition information to the cloud, and display it on a website.
Could Vercel and Next.js do the job? If so, what would be the best way??
I am thinking:
Create code for controller and send a signal via http / api to a back end.
Backend using vercel / next.js .. get the signal from a controller ... forward data to a database, postgress?
At the same time I send data to the database I could send it to the front end.
I could display current data on the front end.
If desired I could also display some history data using the database..
Has anybody worked on similar projects before? Is this a typical type of situation?
Also.. if the data from monitoring changes every second, then, wouldn't the database collection get so big and expensive???
Could vercel be fast enough to keep collecting data this way??
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions