Syntax - Tasty Web Development Treats

RPC in JavaScript!

May 1, 2023
Explore the intriguing world of Remote Procedure Calls (RPC) and why they're making a comeback in web development. Discover how RPC allows seamless client-server communication and its contrast with traditional REST. The hosts dive into the challenges of tight coupling in multi-client environments and the role of frameworks like GraphQL. Plus, get insights on authentication in RPC and the potential of tRPC to blend technologies. Is RPC the future? Tune in for this captivating discussion!
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

RPC: Concept, Not Spec

  • RPC is a design pattern or concept, not a specific technology or spec like GraphQL.
  • Various specs implement RPC, such as gRPC, JSON-RPC, and SOAP.
INSIGHT

Server Components and RPC

  • Server components in React are driving renewed interest in RPC, enabling direct client-server data fetching within components.
  • This simplifies data handling and reduces the need for separate APIs like REST or GraphQL.
ANECDOTE

RPC in Electron and Tauri

  • Electron and Tauri use RPC to communicate between the application and the Node.js process.
  • This allows client-side access to server-side functions, simplifying certain tasks.
Get the Snipd Podcast app to discover more snips from this episode
Get the app