Pros and Cons web actions vs sling servlet | Community
Skip to main content
Level 4
October 14, 2022
Solved

Pros and Cons web actions vs sling servlet

  • October 14, 2022
  • 1 reply
  • 905 views

hi,

 

I'm doing research for our next project, we're thinking about using adobe IO to create REST API which will fetch specific asset (byte stream or just a url to asset) from the DAM based on some logic, like tags matching...

 

What's the difference writing this as adobe IO web action and writing sling servlet (our team is java skilled, limited javascript/nodejs exposure) ?

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mani_kumar_

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 to expose the API other than AEM world IO will be acting as the common microservice architecture where all the API will be centralized by project and can be used by other teams needed

If you have more team comfortable with Java go with servlet for productivity as it may take sometime for people to adjust for Javascript and actions in IO

 

1 reply

Mani_kumar_
Community Advisor
Mani_kumar_Community AdvisorAccepted solution
Community Advisor
November 12, 2022

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 to expose the API other than AEM world IO will be acting as the common microservice architecture where all the API will be centralized by project and can be used by other teams needed

If you have more team comfortable with Java go with servlet for productivity as it may take sometime for people to adjust for Javascript and actions in IO

 

nbg62Author
Level 4
November 17, 2022

 

Thank you