

RPC Resurgence: From Client-Server Applications to Next.js and Meta Frameworks - JSJ 607
10 snips Nov 14, 2023
Panelists discuss the resurgence of RPC in JavaScript frameworks, interweaving client-side and server-side code in web applications, limitations of RPC, and the trend of using server actions in React. They also touch on JavaScript libraries vs frameworks, working remotely vs in an office, a fun game called First Rat, and their recommendations for board games, books, and speeches.
AI Snips
Chapters
Transcript
Episode notes
Next.js Inline Server Actions Anecdote
- Dan Trapier shared a recent example where Next.js inline server actions mix client and server-side code. - This sparked extensive discussion about the pros and cons of interleaving code in single files.
RPC Resurgence Due To TypeScript and Async/Await
- The resurgence of RPC in JavaScript is driven mainly by TypeScript and async/await. - TypeScript provides type safety over the network, and async/await hides asynchronous complexity, making RPC attractive again.
Manage RPC Endpoint Proliferation
- Avoid unchecked proliferation of RPC endpoints to prevent unmanageable internal APIs. - Clearly separate and document internal and public APIs to maintain control and avoid tight coupling.