Command Configuration
Command routing and endpoint settings can be configured per command instance, but are usually configured once through the React <Arc> root component.
Microservice Routing
Section titled “Microservice Routing”Per command:
command.setMicroservice('user-service');Recommended global setup:
- Configure
microserviceon<Arc>so every command and query uses the same service routing strategy. - See Arc Configuration.
API Base Path
Section titled “API Base Path”Per command:
command.setApiBasePath('/api/v1');Recommended global setup:
- Configure
apiBasePathon<Arc>for consistent routing across the application. - See Arc Configuration.