B
B
bondle2020-05-12 12:52:16
PHP
bondle, 2020-05-12 12:52:16

How to explain the choice of approach?

I am rewriting some functionality for working with a third-party api.
It works at the moment like this:
1) different requests for one php file come from 3 different services.
2) the file through if and case brings all json from requests into a single view
3) curl is done to another file with post parameters in a single form.
4) the file still works with the data
5) writes it to

the database My arguments are not considered sufficient, could you give your own why sending requests for one file, and from there sending more requests for others is the wrong approach? Or maybe vice versa?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2020-05-12
@Nc_Soft

What you have now done in one file is called "Api Gateway", and this is quite the right approach.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question