Files need to be deleted, copied, or moved.
For Example, a product or review comment needs to be deleted from the database. When a product is deleted, its corresponding file will also be deleted. Here is the process: First, retrieve the product by ID, then delete it. If deleted successfully, then its corresponding files.
Now, how the file server message broker queues are handled.
- First, create an exchange, then create queue
- One queue will delete files; it takes an array of file paths and deletes them.
- One queue for copying files; It takes the file path and the copied folder
- One queue for moving files; It takes the file path and moves the folder
Files need to be deleted, copied, or moved.
For Example, a product or review comment needs to be deleted from the database. When a product is deleted, its corresponding file will also be deleted. Here is the process: First, retrieve the product by ID, then delete it. If deleted successfully, then its corresponding files.
Now, how the file server message broker queues are handled.