I am building and android app using react native for my WordPress blog.
I just want to display the post title, small description, category and featured image on recent 10 posts. All things are in RSS feed also.
So performance wise, the best way is WordPress Rest API or WordPress Feeds?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Feeds can be easily cached (even put them on CDN), API caching is a more complex thing.
So this covers the performance issue.
But there is also the code and maintenance side… APIs are more flexible as you can change the structure of the request and response to whatever you need and not limeted to a format which you did not design and might not meet all your needs.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0