Neodynamic ImageDraw for ASP.NET
Caching and Alternate Temporary Storages for Output Images
When working with ASP.NET Web Application, dynamic image generation requires time and server resources. In order to reduce response time and server resources, ImageDraw controls provide built-in caching support based on ASP.NET Caching Technology as well as alternate temporary storages for the generated images such as Disk and SQL Server Database.

In This Section:


Memory Caching
Using this caching mechanism, ImageDraw controls will generate the output composite image once per caching period, saving it in the server memory cache. When caching feature is enabled, all image requests will be served from the memory cache. Your application will gain in performance because on each image request, rather than generating the composite image from scratch - a task that consumes time and server resources, the output image is ready to be served from the memory producing faster responses.

How to configure Memory Caching feature:



Disk Temporary Storage (*)
Sometimes you won't be able to leverage server's memory for output image storage. ImageDraw features Disk temporary storage that you can use for saving output generated images in server's disk instead of using memory. When Disk caching feature is enabled, ImageDraw will generate the output image and save it on disk once, and on subsequent requests the image file is directly served from disk (rather than generating the composite image from scratch) producing faster responses.

How to configure Disk Caching feature:



SQL Server Database Temporary Storage (*)
If you won't be able to leverage server's memory or disk for output image storage, then you can try SQL Server Database option. ImageDraw features SQLServerDb temporary storage that you can use for saving output generated images in a SQL Server Database Table. You can use an existing SQL Server Table or create a new one for this purpose. ImageDraw uses ADO.NET SQL Server provider behind the scenes for data access, and thus why the SQL Server must be Version 7.0 or greater (including Expression Editions). When SQL Server caching feature is enabled, ImageDraw will generate the output image and store it on the selected SQL Server Database once, and on subsequent requests the binary content of the image is directly served from the database server (avoiding the composite image being generating from scratch). SQL Server option can be considered as a solution for Web Farm scenarios.

How to configure SQL Server Caching feature:



(*) Both Disk and SQLServerDb "caching" options are not truly caching features because there's no built-in support for caching dependencies (the ability to invalidate the cache if data in it is changed) and thus why we call them "Temporary Storages" instead of "Caching" in this documentation.