T
TanStack2mo ago
crude-lavender

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
magic-amber
magic-amber2mo 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
crude-lavender
crude-lavenderOP2mo 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.
magic-amber
magic-amber2mo ago
well if you want SSR you could still use the c# bff in addition but surely start would make it easier
crude-lavender
crude-lavenderOP2mo 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?
magic-amber
magic-amber2mo ago
yes
crude-lavender
crude-lavenderOP2mo 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?
magic-amber
magic-amber2mo ago
it depends 🤪 if you have auth you probably want to handle that at least server side

Did you find this page helpful?