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•5d 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-emeraldOP•5d 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•5d ago
well if you want SSR you could still use the c# bff in addition
but surely start would make it easier
other-emeraldOP•5d 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•5d ago
yes
other-emeraldOP•3d 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•3d ago
it depends 🤪
if you have auth you probably want to handle that at least server side