FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
How I Used Next.js as Both the Frontend AND the Backend for My Microservices
How-ToWeb Development

How I Used Next.js as Both the Frontend AND the Backend for My Microservices

via Dev.toRaj Maharjan3h ago

We are building a fintech product. The backend is a set of microservices — each service does one job, like handling payments, managing users, or dealing with authentication. For the frontend, we chose Next.js . But here is the interesting part: Next.js ended up doing two jobs in our architecture. It renders the UI that the user sees — pages, components, everything visual. It also acts as a Backend for Frontend (BFF) — a server layer that sits between the browser and our real microservices. One Next.js project. Two responsibilities. This is the story of why I made that call, what it gave us, and what it cost us. What Does "Next.js as BFF" Actually Mean? Next.js is not just a frontend framework. It also lets you write API routes — real server-side code that runs on a Node.js server, not in the browser. So our Next.js project has two parts living side by side: /app /dashboard ← React pages (frontend) /profile ← React pages (frontend) /app/api /auth ← API route (BFF — calls Auth microservi

Continue reading on Dev.to

Opens in a new tab

Read Full Article
6 views

Related Articles

Tutorials Are Lying to You Here’s What Actually Works ?
How-To

Tutorials Are Lying to You Here’s What Actually Works ?

Medium Programming • 4h ago

Flutter Mistakes That Make Apps Slow ⚡
How-To

Flutter Mistakes That Make Apps Slow ⚡

Medium Programming • 5h ago

Welcome Thread - v370
How-To

Welcome Thread - v370

Dev.to • 5h ago

How to Calculate Your Final Grade When the Syllabus Uses Weighted Categories
How-To

How to Calculate Your Final Grade When the Syllabus Uses Weighted Categories

Dev.to Beginners • 5h ago

How Word Scramble Solvers Use the Same Algorithm as Spell Checkers
How-To

How Word Scramble Solvers Use the Same Algorithm as Spell Checkers

Dev.to Beginners • 5h ago

Discover More Articles