Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Hybrid Command And Query

hybrid-command and hybrid-query host the Java Portal command and query modules. They remain separate services even when they share a PostgreSQL database and Config Server environment.

Network role

ServiceDefault host portResponsibility
hybrid-command8439Validated state changes, event append, outbox and command-side integrations.
hybrid-query8440Portal read models, projections, searches and scheduled projection work.

Important environment variables

VariableServicePurpose
INSTANCE_CLONE_PLAN_HMAC_KEY, INSTANCE_CLONE_PLAN_HMAC_KEY_IDBothSigns/verifies instance-clone plans.
WORKFLOW_TOOL_ACCESS_APPROVAL_WF_DEF_ID, WORKFLOW_TOOL_ACCESS_APPROVAL_VERSION, WORKFLOW_TOOL_ACCESS_APPROVAL_DIGESTCommandPins the approval workflow contract.
A2A_SIGNING_SERVICE_URLCommandOptional signing-service integration.
LIGHT_KNOWLEDGE_ADMIN_COMMAND_URLCommandPrivate Knowledge administration command endpoint.
NOREPLAY_EMAIL_PASSWORDCommandNotification integration secret where enabled.
LIGHT_WORKFLOW_RULE_TEST_URLQueryWorkflow rule-test integration.
LIGHT_KNOWLEDGE_CONTROL_SNAPSHOT_SIGNING_KEYQuerySigns Knowledge control snapshots.
embedding-task.enabled, embedding-task.provider, embedding-task.endpoint, embedding-task.model, embedding-task.dimensionQueryOptional asynchronous embedding-task configuration.
embedding-task.apiKeyQuerySecret provider credential for the asynchronous embedding task; keep it outside source control.
JAVA_TOOL_OPTIONSQueryJVM runtime sizing and operational flags.

These services consume event-backed Portal state. Repair projection lag through the consumer/replay lifecycle; do not edit read-model rows to simulate command success.