Catalog Vector
Non-authoritative Qdrant vector search index owned by the Catalog bounded context for hybrid semantic and keyword book discovery.
Purpose & Ownership Boundary
Catalog Vector (vectordb) is the non-authoritative Qdrant search index owned by the Catalog bounded context for hybrid semantic and keyword book discovery. Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and
synchronizes semantic search vectors in Qdrant.
SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docs writes 1,536-dimensional embeddings asynchronously in batches, while Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid
discovery, and authoritative book metadata.
PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs queries the index for candidate book IDs before hydrating authoritative prices, stock status, and ratings from Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs.
Data Store Profile
| Property | Value |
|---|---|
| Bounded Context / Owner | Catalog — Catalog Experience TeamTeamCatalog Experience TeamStream-Aligned team owning BookWorm's product catalog, customer reviews, and storefront/backoffice discovery experience....Open docs |
| Engine / Technology | Qdrant (Qdrant Cloud in cloud; Qdrant container locally) |
| Store Type | Vector |
| Primary Writer(s) | Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and synchronizes semantic search vectors in Qdrant. SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docs |
| Primary Reader(s) | Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs |
| Authoritative / Source of Truth | Derived Read Model (Ephemeral) |
| Data Classification | Internal |
| Retention / TTL Policy | Transient (rebuildable derived projection from Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs) |
Logical Data Layout & Key Patterns
| Collection / Point Key | Stored Data | TTL / Eviction | Invalidation / Update Trigger |
|---|---|---|---|
data-bookworm-snippets / book_id (uuid) | Assembled text (Title, Description, Authors, Category, Publisher) + 1,536-dim cosine embedding (Cohere.EmbedV40) | Retained while book is active (is_deleted = false) | Asynchronous 5-minute batch triggered by Scheduler ServiceServicev1.0.0Scheduler ServiceSingle-host Quartz.NET job execution engine and operational dashboard UI
for scheduling recurring platform jobs and insp...PublishesProcessVectorBatchIntegrationEventAPIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs (scheduler.process-vector-batch) draining pending_vector_updates. Soft-deleted books are removed from the index. |
Commercial fields—prices, stock status, cover image URNs, and rating summaries—are intentionally excluded from Qdrant and always resolved from Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs.
Consistency, Isolation & Security Guardrails
- Eventual search consistency: Catalog mutations appear in semantic search after the next 5-minute Scheduler ServiceServicev1.0.0Scheduler ServiceSingle-host Quartz.NET job execution engine and operational dashboard UI
for scheduling recurring platform jobs and insp...PublishesProcessVectorBatchIntegrationEventAPIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs tick and Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and
synchronizes semantic search vectors in Qdrant.
SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docs batch run (up to
200books per batch). - Revision-safe single-writer batching: Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and
synchronizes semantic search vectors in Qdrant.
SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docs acquires PostgreSQL advisory lock
740031001and deletes queued items only when bothbook_idandrevisionmatch, preventing lost updates from concurrent edits. If embedding generation returns fewer vectors than active items, the batch fails without acknowledging the queue. - No direct external access: Only Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and
synchronizes semantic search vectors in Qdrant.
SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docs writes to
data-bookworm-snippetsand only Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs queries it.
Derived Index Only — Never Authoritative: vectordb is strictly a derived search projection. Never treat vector payloads as canonical product data, and never return prices or availability from Qdrant without hydrating from Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs. Because the index is fully rebuildable from catalogdb, collection resets carry zero data-loss risk.
Operational & Resilience Notes
- Local vs. Cloud: Local development runs a persistent Qdrant container managed by Aspire;
cloud environments connect to an external Qdrant Cloud cluster via environment connection
strings. - Triaging stale search results: Inspect three signals together: pending row count
and oldest
updated_atincatalogdb.pending_vector_updates, scheduled job history in Scheduler DatabaseContainerv1.0.0Scheduler DatabaseAuthoritative PostgreSQL database owned by the Platform bounded context for Quartz.NET job definitions, cluster locks, e...Ownerplatform-engineering-teamDiagramOpen docs, and Qdrant/Microsoft Foundry traces in OpenTelemetry.
Architecture Visualizations
Loading graph...
Related Documentation
- Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and synchronizes semantic search vectors in Qdrant. SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docs — Worker generating embeddings and updating Qdrant points.
- Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs — Hybrid search query pipeline and PostgreSQL hydration.
- Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs — Relational source of truth and
pending_vector_updatesqueue. - Scheduler DatabaseContainerv1.0.0Scheduler DatabaseAuthoritative PostgreSQL database owned by the Platform bounded context for Quartz.NET job definitions, cluster locks, e...Ownerplatform-engineering-teamDiagramOpen docs — Schedule store driving the 5-minute vector batch trigger.
- ADR-002: Use Qdrant hybrid vector and keyword search for product discoveryDecision Recordv1.0.0ADR-002: Use Qdrant hybrid vector and keyword search for product discoveryText search finds candidate book IDs in Qdrant using embeddings plus keyword matching, then loads canonical records from...Ownercatalog-experience-teamOpen docs — Decision adopting Qdrant for hybrid catalog search.
- ADR-003: Maintain the vector index asynchronously through a database-backed queueDecision Recordv1.0.0ADR-003: Maintain the vector index asynchronously through a database-backed queueDatabase triggers enqueue changed books, and Catalog Ingestion drains the queue in batches to update Qdrant, decoupling ...Ownercatalog-experience-teamOpen docs — Decision for coalesced database-queue indexing.
- Backup, Restore & Disaster Recovery (DR)Custom DocBackup, Restore & Disaster Recovery (DR)Operator runbook for PostgreSQL point-in-time restore, Cosmos DB failover verification, Blob Storage recovery, and Qdran...Ownerplatform-engineering-teamOpen doc — Platform backup, restore, and disaster recovery runbook.