I have a WordPress site and I should read data from an external source to populate parts of the various pages. I can choose whether to have the external data in an xml or via rest api. The xml will have is around 150k. I believe that the best practice in this type of situation is to use the rest api to receive the data because an xml is heavier to read than an api.
Does my reasoning seem correct to you? Is it always better to use an API than an xml to read data from an external source? Or is it still a better solution to read the data from an xml every 12 hours and update the WordPress pages so that they are available as a normal page call without resorting to external calls?
Thank you