1.0.0-rc.1 · Release Candidate2 min read
Request and Data Flow
Follow public, Admin, and API request lifecycles through AutoCore’s validation, authorization, and persistence boundaries.
Public request flow
- The browser requests a public page or API resource.
- Web rendering or the client calls the versioned API.
- The API applies DTO/schema validation and public visibility rules.
- PostgreSQL supplies authoritative detail or the search service queries the derived index with a PostgreSQL fallback.
- The API maps the result to a safe response contract.
Admin request flow
- An authenticated Admin request reaches the API.
- Session/JWT context identifies the user.
- Role and fine-grained permission guards run.
- The domain service applies resource ownership or dealer membership rules.
- Sensitive mutations are audited and any enabled side effects are queued.
- The API returns a redacted administrative contract.
API lifecycle representation
Code
request → validate → authenticate (if protected) → authorize → domain service
→ PostgreSQL transaction → audit/event/queue side effect → response
The API remains the business boundary. A browser may display a state or retry a request, but it cannot promote a listing, approve a policy, or mark payment paid by changing client-side data.
Flow qualification
Search, media processing, notifications, and email may be asynchronous. The current source also contains rollout gates and disabled worker consumption for some registered queues, so documentation distinguishes a requested side effect from a confirmed processed side effect.
Related articles
Listing LifecycleFollow the source-verified listing states, actions, ownership rules, and public-visibility consequences.Application TopologyUnderstand the responsibilities and boundaries of AutoCore Web, Admin, API, Worker, and infrastructure services.Data StoresUnderstand what PostgreSQL, Redis, Meilisearch, and media storage own in the AutoCore architecture.Background ProcessingUnderstand AutoCore queue, Worker, indexing, media, notification, and scheduled-processing boundaries.