JIRA Feature | UXPROD-2696 |
Architect | Mikhail Fokanov |
Development Team | Firebird |
Dev Lead | Slava Khandramai |
PO | Stephanie Buck |
Page status | Draft |
Module involved | Dev Lead | Review |
---|---|---|
Inventory | ||
Remote Storage | ||
Dematic Edge |
High-level architecture
Remote-storage related business logic for modules
Inventory module
- The module should send messages (hereinafter update notifications) on every update/create/delete to the corresponding Kafka topic (e.g. instance-updates, holding-updates, item-updates)
Note: sending of messages from Inventory (e.g. adding corresponding code to AbstractInventoryResource and call from its descendants) is better for performance, than sending the message from Inventory-storage because there is existing call to itemCollection.findById which can be used to find the difference (between old and new).
Remote-Storage module
- The module should be used for storing and retrieving all remote-storages settings
- The module should be used to set remote-storage for the location from UI. This info should be stored in Locations table in remote-storage DB schema
- There module has access to the Accession queue table in the same DB schema
- The module subscribes for holding/items update notifications. If permanent or temporary location is changed from the one which is not marked as Remote (e.g. doesn't exist in Locations table) to the one which is marked as remote and corresponding remote-storage accession setting is set to "Folio-initiated", this item/holding is added to the Accession queue
Note: In order to increase performance remote-storage settings and remote-storage locations could be cached. If there is one instance of module the cache eviction can be simply managed (as all updates are done through this module). If there are several instances of module cache eviction can be managed by some some eviction policy or the cache could be made distributed.
Dematic edge module
Module will have connection to remote-storage module API, namely:
- The REST method to retrieve items for accession list by: flag isAccessioned, remote-storage name, date, limit.
- The REST method to set flag isAccessioned to true
- The REST method to retrieve configuration of the remote storage (e.g. name, URL, etc.)
The responsibility of the module is to send items to Dematic (for Dematic Staging director) or response with the list of items (for Dematic EMS).