oRPC Batch Requests Plugin
Installation
SKILL.md
Batch Requests Plugin
The Batch Requests Plugin combines multiple requests and responses into a single batch, reducing overhead.
HTTP/2, HTTP/3, and later versions support multiplexing natively, so this plugin may be less beneficial in modern setups.
Server
import { BatchHandlerPlugin } from '@orpc/server/plugins'
const handler = new RPCHandler(router, {
plugins: [new BatchHandlerPlugin()],
})
Client
Requests within the same group will be considered for batching together.