T
TanStack5d ago
other-emerald

Tanstack Start Saas App BFF Architecture

Would you recommend using TanStack Start as the BFF in front of our React app and C# .NET microservices? Or do you think building the BFF directly in C# would be a better fit?
7 Replies
national-gold
national-gold5d ago
it all depends as always start as a bff works nicely for sure do you want to deploy a JS backend? if no, then use c# there is of course much more to it given the brevity of your question however a deeper answer is not possible
other-emerald
other-emeraldOP5d ago
The plan is to build our backend as a set of .NET Web APIs (microservices). We’ll have a BFF (Backend-for-Frontend) that acts as the entry point — it’ll handle authentication and route all client requests to the right microservices. We’re not building a separate JS backend, everything stays within the .NET ecosystem. Our idea was that in the future, server-side rendering and server functions could be useful. Otherwise, we would have gone with a purely client-first approach.
national-gold
national-gold5d ago
well if you want SSR you could still use the c# bff in addition but surely start would make it easier
other-emerald
other-emeraldOP5d ago
Thanks! So basically, it wouldn’t make sense to wire the request calls to the microservices in Start like the Next.js docs show for a BFF, right?
national-gold
national-gold5d ago
yes
other-emerald
other-emeraldOP3d ago
hi @Manuel Schiller quick question: would you prefer building a B2B SaaS app with TanStack Start by starting client-only first, while keeping the option open to later switch back to a full client–server setup?
national-gold
national-gold3d ago
it depends 🤪 if you have auth you probably want to handle that at least server side

Did you find this page helpful?