Skip to main content

Server RPC

Server-side Remote Procedure Call utilities for TanStack Start.

createServerRpc

Create server-side RPC endpoints that can call other server functions.

Server-Only Functions

Functions that can only be called server-side.

Server Context

Access server-side context in server functions.

Database Transactions

Execute database operations within transactions.

Caching Server Results

Cache server function results for improved performance.

Server Function Composition

Compose multiple server functions together.

Background Jobs

Trigger background jobs from server functions.

Server-Side Redirects

Server-Side Logging

Rate Limiting

Examples

Multi-Step Workflow

Server-Side Analytics

Server-Side Feature Flags