Skip to content

refactor(storage): give the orchestrator its own aggregate, keeping store contracts at domain level - #743

Merged
behinddwalls merged 1 commit into
chenghan.ying/sq-storage-1-gatewayfrom
chenghan.ying/sq-storage-2-orchestrator
Sep 25, 2026
Merged

behinddwalls merged 1 commit into
chenghan.ying/sq-storage-1-gatewayfrom
chenghan.ying/sq-storage-2-orchestrator

Conversation

@roychying

Copy link
Copy Markdown
Contributor

Why?

Second half of the split: with the gateway's four moved, the remaining nine are the orchestrator's, and the domain package should be left holding only what both services genuinely share.

What?

submitqueue/orchestrator/extension/storage/ gains its Factory, a nine-accessor Storage, the nine MySQL implementations and the nine .sql files. submitqueue/extension/storage/ is now the contract layer: thirteen store interfaces, their mocks, the error vocabulary, Config and the README.

Not promoted to platform/ — it is not cross-domain. stovepipe/extension/storage/storage.go already declares its own verbatim copy of the same symbols, so a per-domain error vocabulary is the existing pattern.

submitqueue/core/ is rebound, not relocated: files naming an aggregate name one service's. Relocating those packages is the next branch.

Test Plan

  • go build ./..., go vet ./..., and all four repo checks clean;
  • make test 122/122. queueshard still reports 25 tables.
  • Full integration suite green against real MySQL, 9/9.

Issue

@roychying
roychying added this pull request to stack #742 September 23, 2026 17:49
@roychying
roychying force-pushed the chenghan.ying/sq-storage-2-orchestrator branch from d32355d to 4d3bdf6 Compare September 23, 2026 19:10
@roychying
roychying force-pushed the chenghan.ying/sq-storage-2-orchestrator branch from 4d3bdf6 to f6acabf Compare September 23, 2026 19:23
@behinddwalls
behinddwalls force-pushed the chenghan.ying/sq-storage-2-orchestrator branch from f6acabf to ea32aa1 Compare September 25, 2026 02:01
@behinddwalls
behinddwalls added this pull request to the merge queue Sep 25, 2026
Merged via the queue into main with commit 539938d Sep 25, 2026
16 of 29 checks passed
@behinddwalls
behinddwalls deleted the chenghan.ying/sq-storage-2-orchestrator branch September 25, 2026 02:13

This branch was successfully deployed

1 active deployment
stack-rebase — ea32aa16 Deployed Sep 25, 2026 by behinddwalls via Rebase Stack #536
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants