Hello,
That totally depends on your use case and feasibility how you want to use the APIs
1. While using the servlet you have more feasibility on the usee permission level if you have any sensitive dam assets, you have more control over the servlet as it is easy to access the JCR ApIs
2. If you want...