R – Architecture ideas for static resource (images) web server

asp.netiisweb services

We're looking at removing all of the static resources (mainly images) in our ASP.NET 2.0 web app, and moving them to their own separate server. The main design requirements are for speed (so caching will be important) and a minimal level of security (so that people can't just directly download or rip off the images). Using a plain .net 2.0 web service immediately sprints to mind, but I'm worried about possible performance issues, and caching? Is this a valid concern?

So what kind of architectural setups would fit this bill?

Some other points to consider:

  • WCF is not really an option yet as we're not moving to .net3.5 for a few months yet
  • Development time is limited to 2 weeks

Edit – To further clarify our position:

I don't really need a mission-critical, super high load, asynchronous RPC server dishing out vast amounts of data. All I need is some sort of facade to dish out requests (and take advantage of IIS caching) from our main site for images on a separate web server, and be able to simply authenticate the request to prevent basic cases of theft.

Best Answer

Just use static folder configured as virtual folder in IIS. This will give everything you need. Caching, speed and so on.

Minimal pseudo-security could be achievend with random folder/file names. Or injected pipline handlers. Of course, you should disable folder listings and so on.