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.
Related skills
More from ali-master/skills
orpc ecosystem
Community resources, starter kits, tools, and libraries for oRPC.
2orpc event iterator (sse)
Streaming responses, real-time updates, and server-sent events using oRPC.
2orpc comparison
How oRPC differs from tRPC, ts-rest, and Hono.
2orpc openapilink
Use OpenAPILink in oRPC clients to communicate with OpenAPI-compliant APIs.
2orpc middleware
Middleware enables reusable and extensible procedures in oRPC.
2orpc metadata
Enhance your procedures with metadata.
2