service-oriented-architecture
About service-oriented-architecture
Break a tRPC backend into multiple services with custom routing links that split on the first path segment (op.path.split('.')) to route to different backend service URLs. Define a faux gateway router that merges service routers for the AppRouter type without running them in the same process. Share procedure and router definitions via a server-lib package with a single initTRPC instance. Each service runs its own standalone/Express/Fastify server.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / trpc/ trpc --skill service-oriented-architectureAfter installing, type/service-oriented-architecturein Claude Code to confirm it loaded.
Comments
Markdown supported