DEV Community

Discussion on: Chain as a Service (CaaS)

Collapse
 
meanin profile image
Paweł Ruciński

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.

Collapse
 
rafalpienkowski profile image
Rafal Pienkowski

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:

Image

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.