-
A sample GitHub PII file is linked here, where each object has the Primary Key as
SSN
. -
The Database has two collections
users
andetags
. -
Whenever an empty
POST
request is sent to/
, the backend populates the mongo collection with the PII data, and documents are updated, deleted or created as per the current status of the PII file and theetags
collection is updated with the current Etag value. -
If the PII file is the same as the one fetched in the last iteration, and still a
POST
request is made, the Etag from the response is checked, and as it would be the same, no changes are made to theusers
collection.