samedi 21 octobre 2017

Which design pattern to use to hit multiple rest api

I have one question where I would need some help.

In my current application I need to hit multiple rest api (from express) to get data and to construct my page. Currently I am using promise.all to get the data from all api end points. Any design pattern that I can put on top of it which can help me to decouple the application.

So, I would need to know which design pattern suits most to solve such kind of problem.

Any example would be more helpful for me.

Thanks in advance!

Aucun commentaire:

Enregistrer un commentaire