vendredi 8 mars 2019

Creating a commerce pricing pipeline using springboot

I am planning to build a pricing piepline which will be calling a chain of services. Item price service (which gives price), Shipping price service, promotion service and finally tax service. In some scenarios I may need to call some additional processing of data received from these services as well.

Which is the best design pattern to be used for building such a system? I am thinking about chain of responsibility where each service invocation can be one processor and output of that processor can feed to next processor. Since this is a very common problem is there any other better design solution for implementing a commerce pricing pipeline? I am using Springboot for building my application.

Aucun commentaire:

Enregistrer un commentaire