π Discussion: Which Gateway Endpoint Should Be Used Primarily β /rpc vs Virtual Server Path? #2704
Replies: 2 comments 1 reply
|
Hi @snmanikanta98, great question. If you want a quick default: use virtual server endpoints for tenant-scoped, policy-controlled usage, and /rpc for lower-level direct behavior. I can add a short endpoint-selection note to docs with trade-offs if you can confirm your client pattern (chat app, MCP inspector, load balancer, etc.). |
|
Hi @snmanikanta98, expanding on the earlier guidance with concrete recommendations: TL;DR: Use virtual server endpoints (
Detailed guidance:
For load balancers: Expose |
Uh oh!
There was an error while loading. Please reload this page.
Hi team,
Iβd like to open a discussion regarding the recommended primary endpoint usage in Context Forge Gateway, especially when Virtual Servers are introduced.
Background
Currently, the gateway exposes its default endpoint as:
https://:/rpc
However, when Virtual Servers are configured, the endpoint pattern changes to something like:
https:///servers//mcp
This raises a few questions around what should be considered the primary and recommended endpoint for client integrations.
Key Questions
Which endpoint should be used as the standard entry point?
Should client applications always call the default:
/rpc
Or should they move to Virtual Serverβscoped endpoints:
/servers//mcp
How does request routing flow internally?
When a request is sent to:
https://:/rpc
Does the gateway internally route it to a default server context?
And when using:
https:///servers//mcp
Is the request processed differently (e.g., isolated configuration, policies, routing rules)?
What is the intended purpose of Virtual Servers?
Are Virtual Servers meant for:
Multi-tenancy separation?
Multiple environments/domains?
Routing isolation?
Future-proofing gateway deployments?
Or are they optional and only needed for advanced use cases?
Best Practice Guidance Needed
From an operational standpoint, we want clarity on:
What endpoint should be exposed externally
What endpoint should backend integrations rely on
Whether /rpc remains supported long-term
Whether Virtual Server endpoints are the preferred future direction
Why This Matters
In production deployments, the choice impacts:
API consumer configuration
Load balancer routing
Observability and logging paths
Multi-team gateway governance
Upgrade/migration planning
Request for Maintainers / Community
Could you please confirm:
β Recommended endpoint to use going forward
β Expected routing behavior between /rpc and Virtual Server paths
β Whether Virtual Servers are the preferred architecture for new deployments
Any documentation pointers or real-world guidance would be really helpful.
Thanks in advance!
All reactions