I'm planning to write a game, where the user has to write his own C# code to play it. Since I can't trust the user submitted code I want to create an AppDomain for each user. Each user can write several classes so I need to dynamically compile and instantiate each class. Where some of those classes will have multiple instances.
I don't want to restrict the user count, but lets say a few hundred users are registered. Meaning I'd need a few hundred AppDomains and I'm compiling/instantiating a lot more usercode classes.
Is there any limitation I'll hit much earlier before I reach the user count mentioned earlier? (CPU/Memory)