Expand my Community achievements bar.

SOLVED

Pros and Cons web actions vs sling servlet

Avatar

Level 5

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

 

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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