{"id":167141,"date":"2010-05-04T18:11:35","date_gmt":"2010-05-04T18:11:35","guid":{"rendered":"http:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=167141"},"modified":"2018-12-18T10:52:39","modified_gmt":"2018-12-18T18:52:39","slug":"imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service","status":"publish","type":"blog","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service","title":{"rendered":"Imagery in Web applications: Should I use a cached map service or an image service?"},"author":4781,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_searchwp_excluded":""},"categories":[22931],"tags":[23591,35011,26011,23011],"industry":[],"product":[36571],"class_list":["post-167141","blog","type-blog","status-publish","format-standard","hentry","category-imagery","tag-arcgis-server","tag-caching","tag-image-services","tag-raster","product-arcgis-enterprise"],"acf":{"short_description":" is it better to use an image service, or a cached map service containing the imagery?","flexible_content":[{"acf_fc_layout":"content","content":"<p><img decoding=\"async\" src=\"http:\/\/downloads2.esri.com\/blogs\/images\/dev_12991.jpg\" align=\"right\" \/>One of the most common questions we receive about Web map design is how to display imagery base layers. Specifically, is it better to use an image service, or a cached map service containing the imagery?<\/p>\n<p>As with most Web map design questions, the answer is: \u201cIt depends on the purpose of your application\u201d. In general, if the purpose of the imagery is only for visualization on the Web, putting the imagery in a cached map service is the most responsive and scalable solution. Other factors to consider include the required functionality, and maintainability of the application.<\/p>\n<h3>Speed<\/h3>\n<p>First, let\u2019s address the responsiveness, or speed, of the imagery. Under any circumstance, it\u2019s pretty hard to beat the responsiveness of a cached map service. In a head-to-head footrace to produce one view of the map, an image service may get close. This is especially true when using low-bandwidth Internet connections, because the cached tiles consist of multiple files whose imagery payload inevitably extends beyond the boundary of the screen. An image service, on the other hand, produces one image whose extent matches that of the current map view.<\/p>\n<p>Cached services really hold the speed advantage when panning, largely due to browser caching. If a tile or a portion of a tile has already been fetched, it doesn\u2019t have to be requested again from the server. An image service, in contrast, makes a new request on every pan.<\/p>\n<h3>Scalability<\/h3>\n<p>No matter how fast an image service can produce an image, ArcGIS Server (specifically, the Server Object Container) still has to do work to make it happen. The cached map service, on the other hand, does virtually no work on ArcGIS Server. After you make an initial \u201chandshake\u201d with ArcGIS Server to determine whether a cache is available, the Web server just hands you the tiles you want. This is decidedly more scalable than an image service once your application reaches a particular threshold of users. That threshold depends on the processing power of your server and the pattern of requests.<\/p>\n<p>The aforementioned browser caching also reduces the work of your Web server and contributes to the superior scalability of cached services.<\/p>\n<h3>Functionality<\/h3>\n<p>An advantage of image services is that they are decidedly more functional than cached map services. When working with an image service, you can request a custom projection, image format, resampling technique, band combination, and so on. If your application requires one of these things, an image service may be a better choice.<\/p>\n<p>Image services also let you specify a compression value that can be helpful over low bandwidth networks. You can set a very high compression for quick navigation; then, when you reach the imagery you want, you can reduce the compression to get a better quality image.<\/p>\n<p>You can perform simple queries on\u00a0<i>either<\/i>\u00a0an image service or a cached map service. Queries are possible with cached services because the cache acts as a visualization mechanism only. The administrator can leave the back-end data on the server if end users will need to issue queries to the map service.<\/p>\n<h3>Maintainability<\/h3>\n<p>For all its performance benefits, caching comes with some overhead. You need time and server power to create the tiles, and hardware to store them. You also need to perform cache updates at some interval to prevent your imagery from becoming stale. If your application offers imagery for a vast area at large scales, you may decide that the excessive work required to build and maintain the cache outweighs the performance benefit.<\/p>\n<p>If you find yourself in this situation, you should ideally perform load testing to understand if the performance of the image service is suitable for your purposes. If the image service is not going to work, you may consider only caching strategic places (such as urban areas) at the largest scales, and displaying uncached areas with a\u00a0<a href=\"http:\/\/resources.arcgis.com\/content\/kbase?fa=articleShow&amp;d=36939\">\u201cData not available\u201d<\/a>\u00a0tile. This is the approach used by Bing Maps, Google Maps, and many other Web mapping services that offer large amounts of imagery.<\/p>\n<p>Another option for filling uncached areas is to\u00a0<a href=\"http:\/\/webhelp.esri.com\/arcgisserver\/9.3.1\/dotNet\/strategies_cache_on_demand.htm\">create tiles on demand<\/a>. Beware that this requires you to keep the source imagery on the server, and it can introduce scalability issues if you have not sufficiently pre-cached the most popular areas of your map.<\/p>\n<h3>Summary<\/h3>\n<p>In summary, if the purpose of your imagery is only for visualization as a base layer and you expect moderate to high amounts of traffic on your site, you should attempt to use a cached map service for the imagery. If you want to expose analysis and manipulation of the imagery and you don\u2019t feel that your server will be overwhelmed by concurrent requests, use an image service.<\/p>\n<p><i>Contributed by Sterling Quinn of the ArcGIS Server development team<\/i><\/p>\n"}],"authors":[{"ID":4781,"user_firstname":"","user_lastname":"","nickname":"sterlingdq","user_nicename":"sterlingdq","display_name":"ArcGIS Server Development Team","user_email":"squinn@esri.com","user_url":"","user_registered":"2018-03-02 00:16:25","user_description":"","user_avatar":"<img alt='' src='https:\/\/secure.gravatar.com\/avatar\/ddafe5cd459e188305f7aa49a19793b8e89621b99b1a99c9979eb3f2073a7603?s=96&#038;d=blank&#038;r=g' srcset='https:\/\/secure.gravatar.com\/avatar\/ddafe5cd459e188305f7aa49a19793b8e89621b99b1a99c9979eb3f2073a7603?s=192&#038;d=blank&#038;r=g 2x' class='avatar avatar-96 photo' height='96' width='96' loading='lazy' decoding='async'\/>"}],"related_articles":"","card_image":false,"wide_image":false},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Imagery in Web applications: Should I use a cached map service or an image service?<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Imagery in Web applications: Should I use a cached map service or an image service?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service\" \/>\n<meta property=\"og:site_name\" content=\"ArcGIS Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/esrigis\/\" \/>\n<meta property=\"article:modified_time\" content=\"2018-12-18T18:52:39+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@ESRI\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service\"},\"author\":{\"name\":\"ArcGIS Server Development Team\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/073e71df29bffd1221469a9a683443df\"},\"headline\":\"Imagery in Web applications: Should I use a cached map service or an image service?\",\"datePublished\":\"2010-05-04T18:11:35+00:00\",\"dateModified\":\"2018-12-18T18:52:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service\"},\"wordCount\":15,\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"keywords\":[\"ArcGIS Server\",\"caching\",\"image services\",\"raster\"],\"articleSection\":[\"Imagery &amp; Remote Sensing\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service\",\"name\":\"Imagery in Web applications: Should I use a cached map service or an image service?\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\"},\"datePublished\":\"2010-05-04T18:11:35+00:00\",\"dateModified\":\"2018-12-18T18:52:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.esri.com\/arcgis-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Imagery in Web applications: Should I use a cached map service or an image service?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"name\":\"ArcGIS Blog\",\"description\":\"Get insider info from Esri product teams\",\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\",\"name\":\"Esri\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"width\":400,\"height\":400,\"caption\":\"Esri\"},\"image\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/esrigis\/\",\"https:\/\/x.com\/ESRI\",\"https:\/\/www.linkedin.com\/company\/5311\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/073e71df29bffd1221469a9a683443df\",\"name\":\"ArcGIS Server Development Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ddafe5cd459e188305f7aa49a19793b8e89621b99b1a99c9979eb3f2073a7603?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ddafe5cd459e188305f7aa49a19793b8e89621b99b1a99c9979eb3f2073a7603?s=96&d=blank&r=g\",\"caption\":\"ArcGIS Server Development Team\"},\"url\":\"\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Imagery in Web applications: Should I use a cached map service or an image service?","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service","og_locale":"en_US","og_type":"article","og_title":"Imagery in Web applications: Should I use a cached map service or an image service?","og_url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service","og_site_name":"ArcGIS Blog","article_publisher":"https:\/\/www.facebook.com\/esrigis\/","article_modified_time":"2018-12-18T18:52:39+00:00","twitter_card":"summary_large_image","twitter_site":"@ESRI","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service#article","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service"},"author":{"name":"ArcGIS Server Development Team","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/073e71df29bffd1221469a9a683443df"},"headline":"Imagery in Web applications: Should I use a cached map service or an image service?","datePublished":"2010-05-04T18:11:35+00:00","dateModified":"2018-12-18T18:52:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service"},"wordCount":15,"publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"keywords":["ArcGIS Server","caching","image services","raster"],"articleSection":["Imagery &amp; Remote Sensing"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service","url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service","name":"Imagery in Web applications: Should I use a cached map service or an image service?","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#website"},"datePublished":"2010-05-04T18:11:35+00:00","dateModified":"2018-12-18T18:52:39+00:00","breadcrumb":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-enterprise\/imagery\/imagery-in-web-applications-should-i-use-a-cached-map-service-or-an-image-service#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.esri.com\/arcgis-blog\/"},{"@type":"ListItem","position":2,"name":"Imagery in Web applications: Should I use a cached map service or an image service?"}]},{"@type":"WebSite","@id":"https:\/\/www.esri.com\/arcgis-blog\/#website","url":"https:\/\/www.esri.com\/arcgis-blog\/","name":"ArcGIS Blog","description":"Get insider info from Esri product teams","publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization","name":"Esri","url":"https:\/\/www.esri.com\/arcgis-blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","width":400,"height":400,"caption":"Esri"},"image":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/esrigis\/","https:\/\/x.com\/ESRI","https:\/\/www.linkedin.com\/company\/5311\/"]},{"@type":"Person","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/073e71df29bffd1221469a9a683443df","name":"ArcGIS Server Development Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ddafe5cd459e188305f7aa49a19793b8e89621b99b1a99c9979eb3f2073a7603?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ddafe5cd459e188305f7aa49a19793b8e89621b99b1a99c9979eb3f2073a7603?s=96&d=blank&r=g","caption":"ArcGIS Server Development Team"},"url":""}]}},"text_date":"May 4, 2010","author_name":"ArcGIS Server Development Team","author_page":false,"custom_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/08\/Newsroom-Keyart-Wide-1920-x-1080.jpg","primary_product":"ArcGIS Enterprise","tag_data":[{"term_id":23591,"name":"ArcGIS Server","slug":"arcgis-server","term_group":0,"term_taxonomy_id":23591,"taxonomy":"post_tag","description":"","parent":0,"count":53,"filter":"raw"},{"term_id":35011,"name":"caching","slug":"caching","term_group":0,"term_taxonomy_id":35011,"taxonomy":"post_tag","description":"","parent":0,"count":9,"filter":"raw"},{"term_id":26011,"name":"image services","slug":"image-services","term_group":0,"term_taxonomy_id":26011,"taxonomy":"post_tag","description":"","parent":0,"count":18,"filter":"raw"},{"term_id":23011,"name":"raster","slug":"raster","term_group":0,"term_taxonomy_id":23011,"taxonomy":"post_tag","description":"","parent":0,"count":147,"filter":"raw"}],"category_data":[{"term_id":22931,"name":"Imagery &amp; Remote Sensing","slug":"imagery","term_group":0,"term_taxonomy_id":22931,"taxonomy":"category","description":"","parent":0,"count":766,"filter":"raw"}],"product_data":[{"term_id":36571,"name":"ArcGIS Enterprise","slug":"arcgis-enterprise","term_group":0,"term_taxonomy_id":36571,"taxonomy":"product","description":"","parent":0,"count":972,"filter":"raw"}],"primary_product_link":"https:\/\/www.esri.com\/arcgis-blog\/?s=#&products=arcgis-enterprise","_links":{"self":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/167141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/users\/4781"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/comments?post=167141"}],"version-history":[{"count":0,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/167141\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/media?parent=167141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/categories?post=167141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/tags?post=167141"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/industry?post=167141"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/product?post=167141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}