I'm focused on developing and expanding my knowledge and skills. Enjoying new challenges. I'm assuming that there are no stupid questions, there are only silly answers.
I'm aware that example in on my Github isn't a rewarding as a real life scenario :)
Here you have a more real life scenario: A service which process messages from a queue. It doesn't metter what kind of queue we will use and what should be done by the service. Below an image which will ilustrate that example:
Yellow chain link is responsible for getting messages from a queue. It'll start population of a message in our service. It is the most important chain link in our chain as a service (CaaS) solution. Without it you have "just" Chain of Responsibility (CoR) wich will proccess one message from queue and will end it's work. Our yellow chain link ensures that your chain, as long as there will be a message in a queue, will have a job to do.
By the way. We should remember that our chain is as strong as the most weak element in it.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Have you ever implemented real life example of it? Can you share it with us?
If not, can you propose any? Because I can't imagine usage of it in real case scenario.
I'm aware that example in on my Github isn't a rewarding as a real life scenario :)
Here you have a more real life scenario: A service which process messages from a queue. It doesn't metter what kind of queue we will use and what should be done by the service. Below an image which will ilustrate that example:
Yellow chain link is responsible for getting messages from a queue. It'll start population of a message in our service. It is the most important chain link in our chain as a service (CaaS) solution. Without it you have "just" Chain of Responsibility (CoR) wich will proccess one message from queue and will end it's work. Our yellow chain link ensures that your chain, as long as there will be a message in a queue, will have a job to do.
By the way. We should remember that our chain is as strong as the most weak element in it.