how to use bun or elysiajs with t3stack ?

is there anyway to use elysia js or bun in t3stack , also what about performance , does next js will decrease performance because of its bottleneck ?
3 Replies
MadBonk
MadBonk2mo ago
While the T3 Stack typically uses Next.js as its React framework, you can technically use Elysia.js (or any Bun-powered server) to handle API routes or server-side logic by running it as a separate service alongside your Next.js application. This allows you to leverage Bun's performance benefits for server-side operations while still using Next.js for client-side rendering and routing. Regarding performance, Next.js does introduce overhead due to its many features like server-side rendering, static site generation, and API route handling. However, these features are designed to optimize the overall performance and developer experience for most use cases. If you find specific performance bottlenecks with Next.js, you might consider offloading certain server-side tasks to a Bun-powered service or optimizing your API endpoints to mitigate these issues.
om3r
om3rOP2mo ago
thank you for the answer , so I think its the best to use bun as a separate backend rather than using it inside nextjs as a full stack app.
MadBonk
MadBonk2mo ago
exactly
Want results from more Discord servers?
Add your server