chafey / dicomp10-to-dicomweb-js

Code to convert from a dicomp10 file to dicomweb format (json metadata + frames + bulkdata)
MIT License
19 stars 3 forks source link

Concurrent eventually consistent service #15

Open wayfarer3130 opened 2 years ago

wayfarer3130 commented 2 years ago

In order to ensure that the DICOMweb data is eventually consistent when there is more than one concurrent write, a consistency check needs to be performed until the study is consistent. This service needs to be created and used.
The logic is basically:

  1. Do some sort of study update
  2. Write the DICOMweb data, using the most recent deduplicated data
  3. Schedule a hash check for time + T

Time check is just: Compare the hash values of the currently written deduplicated data against the DICOMweb data. If the hash values don't match, then goto #2 above, otherwise study is consistent.