How skillsfundingagency/dss-gdprupdatecustomerinformation works
This Azure Functions app identifies customers requiring GDPR deletion, queues customer IDs, then processes each message by purging related Cosmos DB data and SQL records before completing or dead-lettering the message. Separate message handling also deletes adviser-detail and collection records. The sampled sources show the timer-to-SQL-to-queue path and the deletion phases; the queue-trigger binding and some function details are not shown, so those links are marked unverified. The README describes the anonymisation and redaction purpose but gives no further workflow detail.
Main entry points: DeleteDssData.cs Process deletion message · RetrieveCustomersToBeDeleted.cs Find deletion candidates · SqlDbService.cs SQL data service · ServiceBusService.cs Queue service
Components 13
Scheduling and orchestration
- Find deletion candidates
NCS.DSS.GDPRUpdateCustomerInformation/Functions/RetrieveCustomersToBeDeleted.cs - Process deletion message
NCS.DSS.GDPRUpdateCustomerInformation/Functions/DeleteDssData.cs - Cosmos bulk delete
NCS.DSS.GDPRUpdateCustomerInformation/Functions/CosmosBulkDelete.cs
Queue messages
- Customer message
NCS.DSS.GDPRUpdateCustomerInformation/Models/DeleteCustomerQueueMessage.cs - Adviser message
NCS.DSS.GDPRUpdateCustomerInformation/Models/DeleteAdviserDetailQueueMessage.cs - Collection message
NCS.DSS.GDPRUpdateCustomerInformation/Models/DeleteCollectionQueueMessage.cs
Persistence and messaging services
- SQL data service
NCS.DSS.GDPRUpdateCustomerInformation/Services/SqlDbService.cs - Queue service
NCS.DSS.GDPRUpdateCustomerInformation/Services/ServiceBusService.cs - Cosmos data service
NCS.DSS.GDPRUpdateCustomerInformation/Services/CosmosDatabaseService.cs
External data stores
- SQL database
- Service Bus queue
- Cosmos DB
Other components
- Timer schedule
Connections 14
- Timer schedule → Find deletion candidates: triggers
NCS.DSS.GDPRUpdateCustomerInformation/Functions/RetrieveCustomersToBeDeleted.cs - Find deletion candidates → SQL data service: requests IDs
NCS.DSS.GDPRUpdateCustomerInformation/Functions/RetrieveCustomersToBeDeleted.cs - SQL data service → SQL database: reads candidates
NCS.DSS.GDPRUpdateCustomerInformation/Services/SqlDbService.cs - Find deletion candidates → Customer message: creates
NCS.DSS.GDPRUpdateCustomerInformation/Functions/RetrieveCustomersToBeDeleted.cs - Find deletion candidates → Queue service: sends message
NCS.DSS.GDPRUpdateCustomerInformation/Functions/RetrieveCustomersToBeDeleted.cs - Queue service → Service Bus queue: publishes
NCS.DSS.GDPRUpdateCustomerInformation/Services/ServiceBusService.cs - Service Bus queue → Process deletion message: delivers message
- Process deletion message → Cosmos data service: purges customer data
NCS.DSS.GDPRUpdateCustomerInformation/Functions/DeleteDssData.cs - Cosmos data service → Cosmos DB: queries and deletes
NCS.DSS.GDPRUpdateCustomerInformation/Services/CosmosDatabaseService.cs - Process deletion message → SQL data service: purges SQL data
NCS.DSS.GDPRUpdateCustomerInformation/Functions/DeleteDssData.cs - SQL data service → SQL database: deletes records
NCS.DSS.GDPRUpdateCustomerInformation/Services/SqlDbService.cs - Process deletion message → Adviser message: handles message
NCS.DSS.GDPRUpdateCustomerInformation/Functions/DeleteDssData.cs - Process deletion message → Collection message: handles message
NCS.DSS.GDPRUpdateCustomerInformation/Functions/DeleteDssData.cs - Process deletion message → Service Bus queue: completes or dead-letters
NCS.DSS.GDPRUpdateCustomerInformation/Functions/DeleteDssData.cs