Replies: 2 comments
-
With validation, everything seems to be clear. We use standard feature requests. We also send the response to the task. 2 and 3 I most likely put the task in the job. Saving and loading the image should be put in an operation and use the interface ShouldQueue. In my humble opinion. |
Beta Was this translation helpful? Give feedback.
-
@yanielbf thank you for your kind words. Glad you find the architecture to be helpful. This is a very interesting case that you mentioned and there are several approaches to handling the failure of saving and wanting a rollback. Method 1 Method 2 Answer to Q1: It is favourable that all logic is contained within jobs and operations to make code consistent and easy to navigate. I hope this answers your question. Please let me know if you have any questions further. |
Beta Was this translation helpful? Give feedback.
-
The architecture seems incredible to me. I'm going to start using it. Thanks for the input. After reading the documentation I have doubts in relation to the characteristics. I am on the example of creating an article. I want to divide the process of creating an article into 4 jobs:
Suppose that step 1 and 2 are executed worse when reaching three an error occurs, you would have to make a rollback of step 2 and delete the uploaded file.
Question 1: Would I have to make a job run if one of these steps cannot be created, something like DeleteImageJob?
Question 2: How would you execute an Eloquent transaction in this process?
Again, congratulations on the job. Greetings
Beta Was this translation helpful? Give feedback.
All reactions