0

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?

2
  • I would go for the rest-api. More control.
    – funkysoul
    Jul 1, 2021 at 5:56
  • 1
    I guess it will be the REST APi, but why not just try it?
    – kraftner
    Jul 1, 2021 at 15:27

1 Answer 1

0

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.

1
  • and lets stop calling it REST, there is nothing REST about WordPress's json API ;) Jul 1, 2021 at 15:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.