Process vector batchv1.0.0 · JSON Schema
Integration event published by Scheduler every five minutes to trigger Catalog Ingestion vector batch processing over Kafka.
1. Scheduled Five-Minute Vector Index Refresh
Every five minutes (0 0/5 * * * ? UTC), Scheduler’s Quartz ProcessVectorBatchJob publishes ProcessVectorBatchIntegrationEvent to the unprefixed scheduler.process-vector-batch Kafka topic so Catalog Ingestion embeds pending book updates into Qdrant.
Payload details
id: UUIDv7 generated byIntegrationEvent(Guid.CreateVersion7()).creationDate: UTC ISO 8601 timestamp (DateTime.UtcNow).
Example payload
{ "id": "01960a1b-7b01-7c00-8a9b-0c1d2e3f4e01", "creationDate": "2026-11-25T16:30:00Z"}Using this example
Scheduler enqueues ProcessVectorBatchIntegrationEvent in its Wolverine PostgreSQL outbox and publishes it to scheduler.process-vector-batch; Catalog Ingestion consumes the event and upserts embeddings for any rows in pending_vector_updates.
using BookWorm.Chassis.EventBus;using BookWorm.Chassis.EventBus.Kafka;using BookWorm.Contracts;using Wolverine;using Wolverine.Attributes;
// Integration event contract (BookWorm.Contracts)[IntegrationMessageOwner( ServiceName = Services.Scheduler, TopicName = "scheduler.process-vector-batch", AppendPrefix = false)][MessageIdentity("BookWorm.Contracts.ProcessVectorBatchIntegrationEvent")]public sealed record ProcessVectorBatchIntegrationEvent : IntegrationEvent;
// 1. Publishing from Scheduler Quartz job via Wolverine IMessageBusawait bus.PublishAsync(new ProcessVectorBatchIntegrationEvent());
// 2. Deserializing CloudEvents payload in Catalog Ingestion Azure Functionvar @event = CloudEventsMessageParser.Deserialize<ProcessVectorBatchIntegrationEvent>( kafkaEventJson);1{
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "$id": "BookWorm.Contracts.ProcessVectorBatchIntegrationEvent",
4 "title": "ProcessVectorBatchIntegrationEvent",
5 "type": "object",
6 "additionalProperties": false,
7 "required": ["id", "creationDate"],
8 "properties": {
9 "id": {
10 "type": "string",
11 "format": "uuid",
12 "description": "Unique identifier of the integration event."
13 },
14 "creationDate": {
15 "type": "string",
16 "format": "date-time",
17 "description": "UTC timestamp when the event was created."
18 }
19 }
20}
21