mercredi 27 novembre 2019

Best design pattern for linking Api results together

Language to use: C#

I have a situation where I have around 4/5 api calls to make but they are all dependent on the previous API call being successful.

For example:

  1. CommandA
  2. CommandB(Uses Result of CommandA)
  3. CommandC(Uses Result of CommandB)

and so on and so forth - it really as simple as that. I have bneen recommended the builder pattern, Chain of responsibility and command pattern but don't know which one would be the easiest to build upon if i have to add any more commands later on down the line. Thanks.

Aucun commentaire:

Enregistrer un commentaire