It all depends on what your priorities are. What I did, as my priority rests with protecting my resources and upgrades, I made enough room to store 2 storages and defensive buildings inside my walls. As of right now, I am upgrading walls and other things that require food. Walls don't require much gold(30k) for lvl 5, so as soon as I raid and get to 30k gold I upgrade 1 wall. So my market is basically always empty, therefore I keep my markets outside. I keep my mills inside because the upgrades that require food cost more, and I need more time to collect food so my mills always have a good amount of food. (Remember, they can steal 25% from mills and markets). Now you can also interchange the space inside the walls with the mills and markets, so if all of the sudden you need to save up a lot of gold, put the mills outside. Here is my base. I am currently building the library, so it will help me with upgrade costs. So it all depends on what your priorities are at different times. Your priorities will change so many times. I made a list with two categories of priorities, category one is food upgrades, and cat 2 is food upgrades, then I prioritized all upgrades in what order I thought I should upgrade them.