Skip to end of banner
Go to start of banner

Data Import

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Flow description

  1. JobDefinition (uuid, profile) for import created in mod-srm
  2. MARC file + JobDefinition ID are uploaded from WEB client to mod-data-import (stored in memory, can be persisted. possible oom)
  3. MARC records are packed into batches and put to Kafka queue
  4. mod-srm reads batches from the queue, validates and passes to mod-srs via Kafka queue. JobStarts on first chunk received
  5. mod-srs stores records into PostgreSQL database and returns the result back via Kafka queue (broken records are also stored as 'error record')
  6. mod-srm reads the profile and creates JSON payload (containing parsed MARC, profile, mapping parameters) for processing. exports it to Kafka queue (one message per MARC entry)

FOR CREATE

  1. FOR CREATE: mod-inventory reads the message, creates Instance. Stores (via OKAPI HTTP) in mod-inventory-storage. Exports message ('INVENTORY_INSTANCE_CREATED')
  2. FOR CREATE: mod-srs reads message and updates according entry with instance id. Creates new message with updated payload ('DI_SRS_MARC_BIB_INSTANCE_HRID_SET')
  3. FOR CREATE: mod-inventory updates Instance with updated fields (Kateryna Senchenko export or same thread?)
  4. FOR CREATE: mod-inventory reads the message, creates Holdings. Stores (via OKAPI HTTP) in mod-inventory-storage. Exports message (Kateryna Senchenko)
  5. FOR CREATE: mod-inventory reads the message, creates Items. Stores (via OKAPI HTTP) in mod-inventory-storage. Exports message (Kateryna Senchenko)
  6. FOR CREATE: mod-inventory reads message and exports to 'DI_COMPLETED' (Kateryna Senchenko)

FOR UPDATE

  1. mod-inventory reads the message, tries to match it according to profile rules. Exports matched records to Kafka queue one by one.
  2. mod-inventory-storage reads messages and stores matched entity to DB. exports the result to queue
  3. mod-inventory reads the message, tries to match (cycle 7-9).
  4. if nothing can be matched, exports result to kafka queue
  5. mod-srm reads queue, updates the progress. updates job state.


  • No labels