Scalability?

Dec 16, 2011 at 9:55 PM

I just downloaded your tutorial and source and am excited to go through it. I've just started learning MVC and it seems great but I'm still quite confused with the whole ordeal. I have a new project coming up for an e-commerce site and would like to use this technology for it's development. What I'm wondering is, would using EF and CodeFirst be a good option? Is it scalable and does it allow changes to be implemented easily?

Coordinator
Dec 16, 2011 at 11:21 PM
It depends what kind of scale you're talking about and what you need the data layer to do. There are large sites running on EF and CodeFirst, including the NuGet.org site (which also handles the entire NuGet package feed).

EF does add some (albeit small) overhead since it's doing things like change tracking, handling relationships, etc. If you need to optimize further, you have two good options: (1) you can tweak EF to use stored proceudres or views for some specific high-throughput areas (2) you can use a micro-orm like Dapper (used on StackOverflow.com) or Massive which does less but does it faster.

I highly recommend building and performance testing rather than making guesses at the beginning. You can use the Repository pattern to abstract your data access so that moving from or optimizing EF is easy should you need to.

On Fri, Dec 16, 2011 at 2:56 PM, Phenomin <notifications@codeplex.com> wrote:

From: Phenomin

I just downloaded your tutorial and source and am excited to go through it. I've just started learning MVC and it seems great but I'm still quite confused with the whole ordeal. I have a new project coming up for an e-commerce site and would like to use this technology for it's development. What I'm wondering is, would using EF and CodeFirst be a good option? Is it scalable and does it allow changes to be implemented easily?

Read the full discussion online.

To add a post to this discussion, reply to this email (mvcmusicstore@discussions.codeplex.com)

To start a new discussion for this project, email mvcmusicstore@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com