0

I'm looking for a way to detect bandwidth usage per-user on an ASP.NET MVC site. We have a site where users can upload large assets and also download these assets frequently, and bandwidth is the most expensive thing for us, so we'd like to pass these costs on to our users. When serving out these assets or when processing uploads, I could just keep a running total for the file sizes to the database indexed by the current user, but I'm wondering if there's a more generic way to do this? Ideally I could track the bandwidth for every request and index it by the current user (that is, the value of HttpContext.User.Identity.Name) but I'm not sure how possible that is.

Steve Vermeulen
  • 1,406
  • 1
  • 19
  • 25

0 Answers0