The account manager and the storefront are joined

The account manager and the storefront are joined

Platform 4 min read Haught Studio platformarchitectureidentitydatabase

Identity lives in the HaughtAI account service; listings live in HaughtStuff. The two services are linked by value, across the boundary, and share no database.

HaughtStuff is two services, and the split is deliberate. HaughtAI is the account manager — identity, entitlement, metering and money. HaughtStuff is the storefront — listings, collections and ratings.

ConcernOwnerWhere it lives
Who a person is, their password, their credentialThe account managerHaughtAI, its own database
What has been submitted to the marketplaceThe storefrontHaughtStuff, its own database

Linked by value, not by a foreign key

A listing records its publisher as the account's id, and the display name copied from the sign-in token. That id is the only join key — which means the storefront never has to ask the account manager who someone is.

No cross-instance foreign key

A REFERENCES cannot cross a database instance, so every link between the two is a value the application validates. Integrity across the boundary is the application's job.

Why the split matters

Two services with two lifecycles means a marketplace deploy cannot take the sign-in system for the whole domain down with it. The storefront stores no identities: a sign-in is verified against the account manager's public keys, and the resulting session lives in the storefront's own signed cookie.