Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

Authoritative PostgreSQL database owned by the Platform bounded context for Quartz.NET job definitions, cluster locks, execution history, and outbox envelopes.

DatabasepostgresqlResidency: eastasiaRetention: 30d history / indefinite schedulesAccess Mode: readWriteDatabase

Purpose & Ownership Boundary

Scheduler Database (schedulerdb) is the authoritative PostgreSQL database owned exclusively 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 in the Platform bounded context. PostgreSQL was chosen to back Quartz.NET’s clustered ADO.NET job store with transactional locking, durable misfire tracking, and a co-located Wolverine outbox for reliable scheduled event publication.

Data Store Profile

PropertyValue
Bounded Context / OwnerPlatform — Platform Engineering TeamTeamPlatform Engineering TeamPlatform team providing BookWorm's thinnest viable platform—orchestration, messaging fabric, scheduling, notifications, ...Open docs
Engine / TechnologyPostgreSQL 18 (Azure Database for PostgreSQL Flexible Server)
Store TypeDatabase
Primary Writer(s)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
Primary Reader(s)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
Authoritative / Source of TruthYes
Data ClassificationInternal
Retention / TTL PolicyIndefinite for schedules; 30 days or 100,000 entries per scheduler for execution history

Logical Data Layout & Key Patterns

Table / SchemaOwned EntityPartition / Primary KeyPurpose & Concurrency
qrtz_job_details, qrtz_triggers, qrtz_cron_triggers, qrtz_simple_triggers, qrtz_simprop_triggers, qrtz_blob_triggers, qrtz_calendars—(sched_name, job_name/trigger_name, group)Persistent job metadata, cron/simple triggers (including ProcessVectorBatchJob every 5 minutes UTC and HeartbeatJob every 30 seconds), and calendar constraints.
qrtz_fired_triggers, qrtz_scheduler_state, qrtz_locks, qrtz_paused_trigger_grps, qrtz_paused_job_grps, qrtz_job_status—(sched_name, lock_name / entry_id)Active firing state, cluster instance heartbeats, and row-level distributed locks preventing split-brain execution.
qrtz_execution_history, qrtz_misfire_history—History entry IDBounded execution and misfire audit trail (30 days / 100,000 entries per scheduler).
wolverine schema—Envelope IDTransactional outbox/inbox tables for reliable Kafka publication (such as Process vector batchEventv1.0.0Process vector batchIntegration event published by Scheduler every five minutes to trigger Catalog Ingestion vector batch processing over Ka...Ownerplatform-engineering-teamSchemaDiagramOpen docs on scheduler.process-vector-batch).

Consistency, Isolation & Security Guardrails

  • No direct SQL mutations: Operators must manage schedules and triggers through the Entra ID-protected Quartz Dashboard (/quartz, admin role) or declarative job configuration—direct UPDATE/DELETE statements against qrtz_* tables corrupt cluster lock state.
  • No sensitive data in job payloads: Never store connection strings, credentials, authorization headers, or personal data in job_data (BYTEA), as operational tables are inspected during diagnostics.
  • Trigger vs. business completion: A succeeded execution record confirms only that Scheduler ran the job and enqueued its outbound event; verify downstream consumers (such as Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and synchronizes semantic search vectors in Qdrant. SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docs) for end-to-end completion.
  • Graceful shutdown: In-flight jobs are awaited before container termination to prevent partial trigger states.
Warning

Database-per-Service & Destructive Script Guardrail: Only 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 may read or write schedulerdb—downstream services like 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, Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and synchronizes semantic search vectors in Qdrant. SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docs, and Notification APIServicev1.0.0Notification APIInternal background worker that consumes order commands from Kafka, renders MJML email templates, and submits mail over ...SubscribesPlaceOrderCommand, CancelOrderCommand +1APIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs never access it directly. Never execute the initialization DDL script with DropDb := 1 against a live environment, as doing so drops all 15 qrtz_* tables and erases all registered schedules and execution history.

Operational & Resilience Notes

Architecture Visualizations & Schema

Loading graph...