InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

ScaleUp Addresses Many of IIS’ File Uploading Limitations

Posted by Abel Avram on May 05, 2010

Sections
Development,
Architecture & Design
Topics
.NET ,
Performance & Scalability
Tags
IIS 7

LeanServer has created for IIS 7.0 an extension called ScaleUp, solving some of the problems related to file uploading and plaguing Microsoft’s web platform. According to its creators, ScaleUp increases upload speed, supports unlimited upload file sizes, scales up to thousands of uploads per server, and includes progress reporting, streaming and filtering.

ASP and ASP.NET have long had a number of problems uploading files. In the beginning, one could not extract a file from a POST message unless he wrote custom code parsing the post and retrieving the file data. ASP.NET introduced the FileUpload control which improved the uploading process by synchronously loading the POST data into the memory, parsing the data to extract the file, and consequently saving it to the disk. This solution had a number of problems, the most severe one being the quick fragmentation of the memory leading to OutOfMemory exceptions because the entire file would go to memory first before being transferred to disk. ASP.NET 2.0 introduced more enhancements including a disk buffering option which saved to the disk any upload exceeding 80KB. Still, there remained some limitations:

  • The maximum size of uploaded files was 2GB (ASP.NET) or 4GB (IIS)
  • There was one thread per upload, leading to thread starvation
  • Disk buffering had a serious negative performance impact
  • Uploads could not be streamed and there was no report on progress

ScaleUp promises to solve all these problems. The features of the framework promise:

  • Faster uploads, up to 20x times
  • No limit for the upload size
  • Scaling up to thousands of simultaneous uploads for server
  • Features like progress reporting, streaming and filtering
  • Enterprise performance monitoring of the uploading process across servers

Mike Volodarsky, former PM for IIS at Microsoft and currently CTO for LeanServer, has explained how ScaleUp works:

The secret behind ScaleUP is its use of the IIS 7.0’s native extensibility layer to completely replace the platform’s upload handling with its own high-performance preload engine. This allows it to eliminate the pre-existing upload limitations, while allowing any existing IIS-compatible application to handle web uploads with virtually no application changes.

At the heart of ScaleUP’s upload engine is fully asynchronous request preload, which eliminates thread starvation and enables us to fully take advantage of multi-core power provided by today’s servers.

The entire engine is fully asynchronous from reading network data, to parsing multipart/form-data uploads, streaming entity filters, and disk storage. Internally, we use advanced Windows performance technologies like async unbuffered IO, advanced cache management and pretty much every IIS 7.0 trick in the book to significantly boost upload throughput, and reduce resource usage on the server.

Currently ScaleUp is used by MySpace to handle 25 million uploads per day, and they say they reduced the number of uploading servers after installing the IIS extension. ScaleUp can be used for ASP, ASP.NET, and PHP applications and can be used with existing applications without requiring modifications.

No comments

Watch Thread Reply

Educational Content

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.