Get 35% Off CFI Certifications - Code CFI35
Google AI Professional Certificate - Learn AI Skills That Get You Hired
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore the architectural decision of using Next.js with a separate server in this 23-minute tutorial that examines the trade-offs and implementation strategies for this development approach. Learn about the downsides of serverless functions and discover the benefits of implementing a separate server architecture for your Next.js applications. Dive into authentication architecture patterns and examine practical folder structure organization for projects using this setup. Follow along with hands-on demonstrations of Next.js authentication implementation, Express API authentication setup, and understand how to handle requests between Next.js servers and Express APIs. Master the techniques for making requests from Next.js clients to Express APIs and gain insights into audience claim management. Compare different architectural approaches to help you make informed decisions about whether separating your server from Next.js is the right choice for your specific project requirements and scalability needs.
Syllabus
00:00 Next.js + server architecture
01:26 Downside of serverless functions
04:19 Benefits of separate server
05:52 Authentication architecture
07:30 Folder structure
08:05 Next.js authentication
12:21 Express API authentication
15:21 Request from Next.js server to Express API
18:05 Request from Next.js client to Express API
19:41 Audience claim
Taught by
ByteGrad