I need to integrate ArcGIS server with my web-based product. I am using ArcGIS Javascript API for the integration. I have placeholder parameters in my product where my customers can put url of map service, feature service etc. In this scenario, what is the best practice to show map? Should I use ArcGISDynamicMapServiceLayer or I should add all published feature layers and create the map? I tried both ways and it looks adding feature layer one by one is little time consuming whereas using ArcGISDynamicMapServiceLayer results in little poor quality of the map e.g. distorted lines.
Any suggestions?