Our next lecture will be given by Dr. Peter Klein and his lectures on production and the firm. Peter? Thank you. I understand that Professor Salerno referred to me in his introduction, and I certainly want to return the favor and say what an honor it is to follow him and to be on the same program with someone so distinguished and someone of such advanced age. I think it's really cool that a lot of you guys have copies of various institute books and are getting autographs from the different speakers. You know, I wish I had thought of that when I was a student. I was attended Mises University many times when Murray Rothbard was one of the speakers, and I owned, I suppose I had most of his books that were in print at that time, but I never had the courage to ask him to sign any of them. I guess I thought I was too cool for that somehow, and I didn't want to act like, you know, it was a big deal, but of course, you know, then he passed away in 1995 without me ever getting him to autograph a book, and that's one of my great regrets that I never did that. So of course I have the books by Salerno and Block and De Lorenzo, and I'm definitely getting their autograph this week, because you don't know how much longer those guys are going to be around. But anyway, let's continue our discussion of economic theory today by discussing production and the firm. We've already talked about Austrian method and fundamental categories of action, value and exchange, capital and interest, entrepreneurship, economic calculation, and so on. I want to add another foundational topic to the mix here, namely to talk about production and the firm. Now, what do I mean by a firm?  What does the word firm mean? Well, if you ask a layperson, if you ask the man or woman on the street, you know, could you draw me a picture of a firm?  A firm looks like this. Or if you've been to graduate school, like this. The point here is that the concepts of the firm you get in sort of mainstream economic theory don't correspond well at all to our common sense notion of what we mean by a business firm. Now, one of the confusions in the literature is that the term theory of the firm, as it's used in the mainstream textbooks, sort of confuses two separate issues. One issue is, sorry, I thought I was missing a slide, one issue is the theory of production, and the other issue is the theory of the firm per se. Now, what are some Austrian building blocks for thinking about the theory of production and the theory of the firm? Well, we already have the basic elements of such a theory from our previous discussions this week, right? We have the notions of inputs and outputs. We have land, labor, and capital as inputs into production, and we have output, consumer goods, as the end result of those production processes. We have Manger's notion of higher order goods, factors of production, versus lower order goods with goods that we consume being at the bottom of Manger's scale. We have the idea of prices, right? That in an economy in which resources are privately owned, they can be exchanged in markets and they will generate market prices. That's information, as we discussed yesterday, that entrepreneurs use in using their judgment, applying their understanding to try to estimate the costs and benefits, and the net benefits of particular courses of action. We discussed that yesterday, and Professor Salerno discussed it a little bit today as well. If the money receipts from production exceed the outlays for the factors, taking into account appropriate discounting for time preference, then the business vendor has generated a money profit. Otherwise, it has generated a money loss. And as we discussed yesterday, the notion of production in the real world, in real time, implies the passage of time and the bearing of uncertainty. So the receipts are only realized in the future after production takes place, and they cannot be known with certainty when decisions about production are made. The agent who is driving this process, the economic actor who is purchasing factors of production, assembling them into different combinations, deploying them in an attempt to earn the largest possible money profit, and to avoid money loss is the entrepreneur. And the entrepreneur's primary decision-making tool, as was discussed in the previous lecture, is economic calculation, comparing benefits and costs in a common unit, in a monetary unit. Now note that an Austrian approach to production in the firm has a particular flavor or has particular characteristics. Namely, we want a causal, realist approach to production, not the kind of production theory that one gets in the mainstream textbooks, which almost seems as if it's written by engineers. It emphasizes the physical technology of production rather than the economic valuation aspects, the notion of action, of means and ends, and so on. Austrian economic theory, beginning with Manger, is a theory of causal relations. Manger begins his famous treatise by stating that the most fundamental economic principle is that of cause and effect. So we want a theory of production that is both causal and realist, that emphasizes real production processes, real prices, not hypothetical, perfectly competitive general equilibrium prices, that is couched in terms of real factors of production, real resources, real production methods, and so on. So we often use the term causal, realist to describe Misesian economic theory, Austrian economic theory, and we certainly want a causal, realist theory of production in the firm. We want to explain prices, quantities, characteristics of real goods and services exchanged in real markets, not hypothetical goods and services in hypothetical markets. So, as I mentioned before, the term theory of the firm, as it's used in the textbooks, often confuses two separate issues. What we might call the theory of production, what can we say about ways in which factors can be combined to producing consumer goods? What are the attributes of factors? What can we say about factor combinations, the characteristics of different combinations, and so on? Now that includes elements such as the economy's structure of production, the relationships and interrelationships between higher order and lower order goods, how factors of production are priced, as we've already discussed yesterday and today. Resources are exchanged in markets. Entrepreneurs buy and sell factors. They're in factor markets where factor prices are determined. What can we say about those prices? How are they formed and so on? And that helps us to understand the notion of cost from the perspective of the entrepreneur. Now, these are extremely important issues, but they're not, they're distinct from what we might call the theory of the firm per se. What is a firm? How large will the firm be? What is the nature of the firm? How are firms organized? So by the theory of the firm, we have in mind something like the legal or common sense notion of an organization. Can we explain Microsoft? What activities will be conducted by Microsoft? What activities will be conducted by other firms? What's done inside the firm? What's done between firms? So these are sort of the classic questions in the theory of the firm include why do entrepreneurs establish firms in the first place, as opposed to doing everything as a sort of diffused, loosely structured network of independent contractors? What determines the size and scope of the business firm? How should firms be organized and managed? Again, the firm in this narrower sense refers to legal boundaries, who owns, which entrepreneurs will own which resources, and how will those entrepreneurs combine these resources in productive ways? The theory of production asks what inputs, how are particular inputs used to produce particular outputs? Unfortunately, the term theory of the firm until pretty recently was used by mainstream economists to describe both of these areas. And of course, most of the attention, 90% of the attention was on the first set of questions with very little attention until the last 20 years or so being devoted to the latter set. We'll talk about both of those today. Now those of you who have taken a course in intermediate micro-theory in a mainstream economics department have probably seen plenty of pictures like this. So the neoclassical approach to production usually proceeds along something like the following lines. Imagine a production process. I copied and pasted this from some textbook that I had. I think it's producing automobiles or something like that. And there are two inputs, aluminum and steel. The factor prices, the prices of aluminum and steel are given exogenously in some hypothetical factor market. And these pink lines on the left-hand side represent different combinations of input A and input B that all have the same cost, so-called ISO cost lines. The black curvy line is what they call an ISO quant showing you how different combinations of input A and input B can be used to produce a certain quantity of output. How many of you have seen these kind of pictures before? You can do all the usual fun stuff. You can change input prices and shift curves around and say what's the least costly way to produce one unit of output, two units of output, ten units of output, or whatever. You notice it looks a lot like an indifference curve diagram. You've seen those before. So there's a nice kind of formal symmetry between neoclassical production theory and neoclassical consumption theory that people like if they value mathematical tractability above other things. The way these diagrams are used is, okay, figure out what's the least costly way to produce certain quantities of output, and then we plot those when we get something like the middle diagram, which is a total cost curve. So we put on the horizontal axis the quantity of automobiles, whatever it is. So if I want to produce one automobile, what's the cheapest way to do it? How much does it cost? I want to produce 10 automobiles. What's the cheapest way to do it? How much does that cost? And so on, you get this nice total cost curve from which one can derive all of the other cost curves that mainstream textbooks like to diagram and fiddle around with and so on. Got a marginal cost curve, an average cost curve, average total cost, average variable cost, average fixed cost. You can sort of do these out the wazoo, as they say. And then there's all sorts of things you can do to play with these curves. One of the things that's interesting, if you look at human action and man-economy and state, both of them devote considerable attention to production theory. Man-economy and state in particular devotes about five chapters, five very lengthy chapters to the theory of production. And there are even some diagrams, some charts, some equations. But one thing that's completely absent from human action and man-economy and state is any cost curves. There's no cost curve diagrams like these whatsoever. And that would strike you as odd because those are the kinds of pictures that dominate the conventional microeconomics textbooks on the theory of production. How does the firm maximize profits given these cost curves and some revenue curves? The curves have different shapes depending on the circumstances and that's basically what production theory is all about, is manipulating cost and revenue curves. But there are no cost curves in the Austrian treatments of production. Why is that? Well, there are a number of problems with this kind of approach to production. For example, the notion that factor and output prices are taken as given, but then used ultimately to explain factor and output prices. What I mean is in this sort of standard approach, we take all of the prices, the decision makers assume to be a price taker from which these curves and so on can be derived, but then the curves are used to explain the price in the market and the prices of aluminum and steel or whatever. So there's a sort of circular reasoning in taking factor prices and output prices as given, using them to derive sort of an analytical apparatus that is then supposed to explain factor prices and output prices. You know, you can make these things fancy. You can have a demand curve that's downward sloping instead of horizontal. You can derive factor demand curves and you can have all kinds of strategic interaction among the decision makers and so on. However, in all of these cases, some things are absent. There is no time or uncertainty in this approach to production. There's no time whatsoever because production and consumption are simultaneous. There are no stages of production that take place that are arranged in real time. The decision to purchase a certain quantity of inputs and produce a certain amount of output, set of simultaneous decisions. There is no causal explanation for factor prices. As I've mentioned before, factor prices are assumed to be given and then the model is used to derive a set of factor prices. There's a sense in which this kind of approach, if you want to use this language, emphasizes kind of a set of equilibrium conditions. If the curves look like this and the input prices have these values and the output prices have these values and there are these many firms with these characteristics, then the market is in equilibrium. So it's kind of a general equilibrium in a sense, or a mechanistic simultaneous determination kind of approach to production. It's very different from Manger's notion of a causal realist explanation. Another way we could characterize the problem, as Murray Rothbard did, is that this approach to the firm emphasizes the wrong problems. It emphasizes the wrong problems. What I mean is that important issues of production here are portrayed as if they're shown from the perspective of the plant manager. Imagine there's a factory producing whatever automobiles and there's inputs, aluminum and steel and the decision that the decision maker is faced with is what quantity of output to produce and what quantities of inputs to purchase. If you have the equations, you can solve it and find out the optimal profit maximizing quantity. I remember when I studied this stuff in school, in graduate school, my friends and I used to joke about hiring ourselves out to major manufacturing firms as consultants and we would go into Toyota or something and say, okay, look, the problem is you guys want to maximize profits. If you just show me your cost curves, I can find the tangency point for you or if I'm fancy, I can take the first derivative and set it equal to zero and I'll tell you the profit maximizing quantity and you'll pay me a million bucks or whatever. That's not really the interesting problem that Toyota faces. If there is a plant in a particular spot, those of you who came in from Atlanta by car, most of you, you remember passing that huge Kia plant that's in West Georgia, it's an enormous factory. Assume that that Kia plant is already set up and everything's already in place, the inputs are readily available, the outputs are already ready, all you have to do is figure out what's Q star and press a button and optimal quantity. Okay, once you get to that point, it's pretty easy. The hard questions are things like, why is there a Kia plant there in the first place? Why does Kia motors exist? Why did the top level decision makers decide to put a factory there in West Georgia and not someplace else? Why is it of a certain size? Why does the plant manager, the one who's making this decision or should we produce one more car today or one fewer car today, how did that manager come to be there? Who gave the decision making authority to that particular manager? The whole idea of taking costs and revenue curves and finding the place where MR is equal to MC, that's almost a trivial problem compared to the real problem of how do you produce cars and where do you set up the production processes and how much capital do you give to each plant and so on. Solving for MR equals MC is, I mean anybody can do that and a freshman economics major can do that. That's the wrong problem. There's a very interesting discussion in Mises' human action on socialism and the socialist calculation debate where he, Professor Salerno outlined Mises' argument, Mises' famous argument about the impossibility of economic calculation under socialism. Now, after Mises presented his argument, there were a number of responses and critiques by pro-socialist economists and some of them in the 1930s and 1940s said, well, okay, Mises is right that you couldn't have a sort of complete top-down centrally-planned system, but why couldn't you set up a socialist economy in which you have factories, production plants, just like in a capitalist economy, and you have managers who decide how much to produce and instead of them being employees of a capitalist firm, we'll just make them all civil servants. The government will own all the factories and will hire plant managers who will work for the government and we'll put them in these factories and we'll say, hey, do the same thing that you would do if this were capitalism. In other words, take the cost curves and solve for everything and find the quantity where MR is equal to MC. Won't it be just like capitalism? How will it be any different? And, you know, Mises' characteristically insightful reply is that these market socialist proponents completely misconceive what capitalism is all about. The central problem of resource allocation under capitalism is not what quantity, you know, maximizes profit given all the characteristics of the firm. The real problems are how does an economy allocate factors to production to different activities? How much capital should the auto industry have compared to some other industry? How much capital should Kia have compared to some other automobile manufacturer? How much capital should be invested in this factory that's here rather than somewhere else as opposed to other Kia plants and factories?  Those are the really critical problems solved in a private property regime that no socialist system can possibly address. If the resources, if factors of production are owned by the state and individuals involved in these decisions are employees of the state, then there's no way to answer those questions of what should be done and how it should be done. So you see that implicitly what Mises is doing is criticizing the neoclassical theory of production and saying all of this intellectual energy is wasted on answering a second-order trivial question. What's the profit-maximizing quantity given this, this, this, this, this, this? What's really important is those givens. Where did they come from? What determines them and so on? So what does an alternative account of production look like? Well, we want to build on Austrian constructs. We start with Mengehr and Baumbavark and Mises and Hayek and so on. As I mentioned before, there's this middle section of man-economy and state, chapters 5 through 9, which provides one of the most detailed and certainly the most systematic exposition of Austrian production theory. Also, Ludwig Lachman's 1952 book, Capital and its Structure, which as of late has been somewhat neglected within the Austrian tradition, is a valuable contribution to this literature as well. Israel Kursner's essay on capital should be mentioned in this context also. The key issues that we want to address are what determines the prices of factors of production and how factors of production will be used. We want to try to understand and explain the economy's structure of production. And we want to incorporate the notions of entrepreneurial profit and loss. So let's start with some considerations about factor pricing. So we have factors of production, land, labor and capital. And notice, by the way, labor, of course, doesn't just mean physical labor, manual labor. So-called white-collar jobs, management jobs, are part of the labor force as well. What can we say about land, labor and capital? How they're priced? How they're priced on a rental basis? How they're priced on a purchase basis and so on? Well, one of the fundamental concepts here is the notion developed by Austrian economists in the 19th and early 20th centuries, which has come to be known as the theory of imputation. The theory of imputation. And this is the idea that the prices of factors of production, as determined in factor markets, where entrepreneurs are bidding against each other for the services of factors, depend on, in simple terms, the value of marginal units of factors to the entrepreneur. The prices of factors are determined by the value of those factors to the entrepreneur. Technical terminology, that factors that you rent, like labor, right? So you rent the labor services of an individual and you pay him or her so many dollars per hour or dollars per week or whatever. How much is an entrepreneur willing to pay for somebody's labor? Well, they want to calculate how much more output do I get by employing that additional labor and how much do I think I can sell that output for on the market? Like the Derek Jeter example that Professor Herbner used yesterday. And Rothbard calls this the discounted marginal value product, you might say in modern terminology, discounted marginal revenue product, right? So the marginal revenue product is the addition to anticipated total revenues from employing one more unit of the input or factor. And of course the entrepreneur has to discount this by the rate of interest because the payments from selling the output are received in the future, whereas the outlay for the wage paid to the factor is paid earlier in time. So in the sort of equilibrium state, the prices of these rental factors would be equal to their discounted marginal revenue product. Now there are some important sort of conditions. Factors must be non-specific for this condition to hold. In other words, if a factor is purely specific to one production process or purely specific to one entrepreneur, then you don't have the condition of multiple entrepreneurs bidding against each other for the services of that factor. And if the factor owner has a very strong bargaining position, is very skilled at bargaining, the factor owner may be able to command a higher price than the discounted marginal revenue product. The factor must also be what Rothbard calls isolable, meaning that you can isolate the contribution of that factor from the contribution of the other complementary factors that are used in production. So if you have a factor that can only be used in a fixed proportion with other factors, so the steering wheel on an automobile, you can't add a second steering wheel and sell the car for a little bit more and add a third steering wheel and sell the car for a little bit more. So you don't generate more revenues by adding more steering wheels because you need one steering wheel and four tires and one speedometer and so on that have to be used in particular proportions to produce an automobile. So just having one more steering wheel doesn't generate more revenue unless you also have four more tires and one more speedometer and so on and so forth. Of course, that doesn't apply to all inputs into car production. You know, a little bit more steel, you can make a little bit bigger car and maybe sell it for more. But there may be some factors whose contribution to production cannot be isolated from the contribution of other factors because the whole bundle is... you can value the whole bundle of factors but not the individual factors. These are qualifications, right? In those cases, in these sort of strange cases, you have bargaining between entrepreneurs and factor owners. But given that the factor is non-specific, at least partially, and isolable, at least partially, then its price on the factor market will tend to be determined by its discounted marginal revenue product. We're just restating in different words what Professor Herbner was saying yesterday about Derek Jeter, right? So the reason why professional athletes get paid a lot and economics professors get paid very little is because the market value of their output is, strangely, a much higher than the market value of ours. Factors of production that can be bought and sold in their entirety, the purchase prices are determined by sort of capitalizing the future stream of rental prices as in a machine. You can rent a machine and you'll pay the discounted marginal revenue product of the services of that machine. If you can buy the machine outright, that price will tend to be set by sort of the present value of this future stream of rental prices that would accrue to renting the factor. Okay. This is pretty straightforward stuff.  This was a major innovation in economic theory because for a long time economists had believed that the causal relationship between the values of factors and the values of outputs ran the other way. Right? The classical view, for example, was that the costs of production are what determine the prices of the output. What determines how much a smartphone will sell for in the market? Well, it depends on the cost of producing that phone. If these costs are very high, the entrepreneur will have to add a markup and therefore will have to charge a very high price in the market. What the Austrian showed is that the causation is the other way around. Not from the costs of the factors to the price of the product, but rather from the price of the product to the cost of the factors. In other words, remember, according to Manger, value is subjective. Consumers have subjective valuations for the goods and services they consume. Those values are reflected in the purchase prices of consumer goods. And those prices are, in a sense, imputed backward, imputed up the production chain, up the supply chain to the inputs that are used to produce those outputs. Mises use the example of land prices. This is a picture of a vineyard in the Champagne region of France. If you go down to the grocery store, the liquor store, whatever, and buy a bottle of Champagne here in Auburn, maybe to celebrate the end of Mises' U, if it's good Champagne, you might pay 100 bucks for the bottle, if it's high-end Champagne. Why is Champagne so expensive? Well, the classical explanation, a large degree adopted by Marx as well, is that, well, the reason a bottle of Champagne costs so much is because the land that is used to produce the grapes that make Champagne is really expensive land. And it's true, if you try to buy up this farmland in this region of France, I mean, the land prices are sky-high. So it takes a lot of money to produce Champagne because you've got to buy this expensive land. Therefore, you charge a high price for the bottle. And, of course, a few moments' reflection make us realize that that can't be the explanation. What if consumers decide they don't like Champagne anymore?  And the demand for drinking Champagne falls. What's going to happen to the market price of these bottles of Champagne on the grocery shelves? Those prices are going to fall. Sellers will try to unload their inventories. They'll discount the price of Champagne and eventually the market price of Champagne drinks is going to go down. What's going to happen to the price of the land that is used to grow the grapes to make Champagne? Well, I mean, if this land is, you know, if the highest valued use of this land is to produce something that nobody wants to buy then who wants to own this land? There's no value in owning the land. So it is the value that consumers place on the drink Champagne that determines the prices of the land that is used to grow the grapes that are used to make the Champagne. Okay, so prices determine costs on the other way around. All costs are ultimately opportunity costs. All costs are ultimately opportunity costs. That's what we as Austrians mean by cost. I mentioned yesterday the cost to you of sitting here in this lecture listening to this lecture is the value of the other things that you're not doing because you're here instead of doing those other things. That's the cost to you, the value for gone. But it's the same thing in the production process. The cost of using this land to produce grapes to make into Champagne is the value of the consumer goods and services that we don't have because this land wasn't used to make them instead. So costs are not, in a sense exogenous to the market valuation process. Costs are the result of consumer valuations. There's always consumer valuations that determine business behavior not the other way around. And this is why we have confidence in stating that in a market economy in which goods in which factors of production can be bought and sold in markets they will tend to be allocated to their highest valued use. In other words, resources will tend to flow towards those entrepreneurs and those production processes in which they are used to make the goods and services that consumers desire the most relative to other goods and services that could be produced with those same inputs and by those same entrepreneurs. It needs a whole notion of consumer sovereignty that the consumer is the captain of the ship, not the factory owner, not the industrialist, not the manager. It derives precisely from this mutation. Now, consider in more detail the role of the entrepreneur in making all this happen. Remember, we're not assuming that champagne comes into existence on its own. The consumer sort of push a button and instantly champagne comes into existence. No, there are thinking, choosing, acting human beings involved in every step of the process. There are consumers who conceive of the drink in ways it might be produced and use economic calculation to determine what's the least costly way to produce this product and hope that consumers will desire it and so on. In what Mises and Rothbard call the evenly rotating economy, kind of an equilibrium, kind of a long run equilibrium state, factors of production will tend to earn their new products. Labor will be paid what it's worth on the margin. Land will be paid what it's worth on the margin, meaning it's value to consumers. The value of the goods and services it produces, value to consumers of what it produces discounted for the rate of interest. Capitalists will earn interest payments as compensation for forgoing current consumption and making their capital resources available to be used in production. But there won't be any profits and losses. Why? Well, because if I'm an entrepreneur producing champagne and I earn a certain amount of revenues from the production of that champagne, well all of these revenues are paid out to the inputs that are used in the production process. By the marginal productivity theory of valuation and distribution. In other words, there's nothing left over after all the factors of production have been paid. Why? Well, because if I could produce champagne that's worth a bottle of champagne and sell it for 100 bucks and I can buy land and labor and so on to produce that bottle of champagne for only 80 bucks having something left over, well that provides an incentive for other entrepreneurs to outbid me for those factors of production. Another entrepreneur says well you know I'll pay 81 for that factor bundle and somebody else says I'll pay 82. Right? And the factors of production would be bid up to the discounted value of that $100 worth of output. There wouldn't be anything left over for the entrepreneur. In the real world of course the values of factors of production, these discounted marginal revenue products are not known with certainty. Right? They're not given by textbook authors. Rather they have to be anticipated. They have to be guessed or forecast by entrepreneurs using understanding, using judgment and some entrepreneurs will be better at this than others. Right? Some entrepreneurs will make mistakes they'll say hey I can buy these factors for 80 bucks and combine them into a bottle that I can sell for 100 and they go and spend the 80 bucks and they build their thing and their bottle and they put it on the shelf you know six months later and nobody wants it. People are willing to pay 70 for it. Okay? And leaving discounting aside this entrepreneur's lost 10 bucks and maybe 10 bucks per bottle and it's a big operation it's a big deal and he's out of business. Okay? Another entrepreneur was more accurate in his or her forecasts of what consumers would be willing to pay and is able to purchase factors of production for less than their eventual discounted marginal revenue product thus having something left over. The point is that profit and loss are exclusively the result of uncertainty. Building on the discussion we had yesterday about uncertainty in entrepreneurship in a world without uncertainty where output prices are known in advance and discounted marginal revenue products can be known in advance there's nothing left over for the entrepreneur either positive or negative. It's only in a world of uncertainty where discounted marginal revenue products must be estimated, anticipated by entrepreneurs that we have profits and losses. Okay so again we're not talking about probabilistic risk here that can be estimated you know approximated with a probability distribution function and so on but rather true uncertainty what night called uncertainty rather than risk. Let's spend a few minutes now talking about the theory of the firm per se how do we get from these notions of the production process how production takes place how factors are priced what determines cost and so on to saying something about the firm as sort of a formal entity the firm as a legal entity what and why as I mentioned before in the mainstream micro theory textbooks you get very little about this issue at all. What they mean by a firm is typically a production process, a production function y is equal to f of x1 x2 x3 and so on so the theory of the firm in micro textbooks is the theory of a productive process and as I've suggested in the last few minutes it's not a very good theory of a production process now there has been some there have been many important theoretical developments in the last two or three decades trying to flesh out this notion of the firm as a legal entity what's sometimes called transaction cost theory or the transaction cost approach associated with people like Oliver Williamson one of the Nobel laureates from the year before this last year there's also what's become known as the property rights approach to the firm associated with people like Oliver Hart at Harvard, defining the firm not as a production function but in terms of ownership of resources and I think this is essentially the right way to define a firm that really what we're interested in is who owns what assets and why right so in this way of thinking about the firm the definition of a firm is an entrepreneur a capitalist entrepreneur plus the assets the alienable assets meaning assets that can be bought and sold that the entrepreneur owns could be a single capitalist entrepreneur it could be a team of capitalist entrepreneurs who jointly own factors of production such as partnership or a set of shareholders in a corporation ownership of factors of production in this conception conveys a kind of authority kind of decision making authority about how factors of production will be used what do I mean well in a world of if there's no uncertainty if there's merely probabilistic risk or even no risk at all then people can write contracts with each other that stipulate exactly who gets to do what under particular circumstances right so I hire Mark Thornton as my employee to run my Kia plant and I can write a contract that says exactly what he has to do under particular circumstances how fast he should run the machines how many cars he should ship out and so on under different conditions that we specify however in the real world of uncertainty there will always arise situations that we didn't previously agree upon so there's some condition in the market something that affects supply technological innovation perhaps change in market conditions that wasn't previously covered in my agreement with Mark who has the ultimate decision who has the final say on how the assets that are owned by Kia will be used well the definition of ownership in this context is the right to make decisions about the use of resources in circumstances that weren't previously agreed upon ok so the whole idea of me being the owner and Mark being my employee my hired manager is that if something comes up that we didn't previously agree upon the person who gets to make the final call is me because I own the factory he doesn't he's just my employee he's a contract worker he agreed to do certain things in exchange for a certain payment but when conditions arise that were not specified in our agreement he has no authority ownership conveys the right to make decisions about how factors will be used in conditions not previously specified by contract that's what ownership is in this context so notice some of you may have heard maybe familiar with the terminology used by Hayek Hayek wrote a famous article called Taxis and Cosmos talking about two different forms of social organization right a taxes is what Hayek described as sort of a designed order something that's designed from the top down like central planning for example whereas a cosmos is sort of spontaneous order or something that emerges from the bottom up an emergent order to use popular term that you hear sometimes today in this context the firm is not a cosmos but rather a taxes there's the firm is designed by its owners right the owner or owners get together and make conscious decisions about what to produce and how to produce it and what resources to acquire and what assets to divest and so on now of course that doesn't mean that every single detail of the firm's operations are planned from the top down that would be impossible in any kind of large complex organization and all but the simplest organizations it simply means that the owners always by the virtue of their ownership have a kind of residual controlling authority so even if I delegate a lot of day-to-day responsibility to Mark and then go off to my yacht in the Caribbean or whatever the fact that I chose to hire Mark that I can fire him if I want that I chose to delegate certain authority to him and that I can take that authority back if I desire means that I'm the ultimate decision maker the owner is the ultimate decision maker in this sense now you notice that there isn't a one-to-one relationship between the firm as ownership of assets and the production process or the production function in modern jargon right one firm can own multiple production processes you know multi-divisional multi-plant multi-product firm that produces different outputs and has many different plants and so on some firms don't own any production processes whatsoever I was talking to a guy at the conference yesterday who has sort of a virtual business he sits in the front of a computer screen and he sells things to consumers on his website he doesn't own any manufacturing or distribution he outsources all the production to somebody in China maybe and he uses UPS or FedEx to do his distribution and delivery PayPal to do the payment processing and so on that's still a firm because this individual owns his own labor he owns his computer he owns the facility that he uses and so on the production process he contracts that out firms can jointly operate production processes through a joint venture for example so the theory of production is not the same thing as the theory of the firm these two theories address different questions you know what does Austrian economics say about these classic questions in the theory of the firm why do firms exist what determines how big they are their boundaries what determines how they are organized in my own work on these questions I've built extensively on the insights of Ronald Kos Chicago economist, idiosyncratic economist who wrote a famous paper published in the 1930s called The Nature of the Firm which has really become the basis of almost all of the modern research on firms as organizations Kos's emphasis was on what he called transaction costs the costs of transacting in the market the argument offered by Kos is that there are some advantages to authority or hierarchy in the sense that I've described it the authority or hierarchy that comes along with ownership in principle Mark and I could be independent contractors I own some stuff he owns some stuff and we get together to work out some arrangement by which we produce cars but that may not be an efficient way to organize automobile production every time new circumstances arise we have to renegotiate our contract every time I want to do something I have to deal with Mark or find somebody else to deal with I have to negotiate with input providers I have to negotiate with marketing firms and so on to sell my stuff maybe I don't want to do that I don't want to have to renegotiate with these different trading partners every time a decision needs to be made I prefer to own all of the resources that are needed for doing this activity and have people like Mark and the other actors involved as my hired employees with authority over them a purely voluntary set of market transactions which if I can offer Mark a high enough wage can really be my employee subject to my authority rather than be a free agent an independent contractor if in fact it is more efficient to reduce these costs of negotiating and exchanging information and so on then I can afford to pay him more than he would earn as his own man so Coase emphasized that firms exist to economize on these transaction costs of negotiations to exchange among different owners of factors if we add to this the nightian notion of entrepreneurial judgment we realize that look there's certain things that you can exchange in markets certain things that you can buy and sell or write a contract over but the exercise of judgment the exercise of ultimate authority over the use of productive factors is not something that itself can be contracted for in other words you don't buy and sell judgment in the market you buy and sell assets so if I own the Kia plant I have ultimate responsibility over how that Kia plant how the building and machines will be used under conditions of uncertainty I delegate some authority to mark but I cannot delegate to mark ultimate authority for how these resources will be used unless I sell him the factory and make him the owner because that's the definition of ownership the one who holds these ultimate decision rights so if I wish to exercise judgment what night calls judgment in production the only way I can do that is to buy some assets is to own some productive resources is to be a capitalist entrepreneur so I may have great ideas about producing cars I may have this great vision I may imagine an opportunity to make money producing cars but I do not become an entrepreneur until I actually purchase factors of production combine them in particular ways and deploy them to produce stuff so I have to invest resources to exercise the entrepreneurial function in other words that's why entrepreneurs start firms because the entrepreneur must own some assets to exercise entrepreneurial judgment and once you have an entrepreneur plus some assets you have a firm what determines the boundaries of the firm how big should Kia be how many plants should Kia own how many different cars should Kia make should Kia be vertically integrated in other words manufacture building wheels in its own engines put together its own chassis and so on should it contract a lot of that out should it be more like Toyota uses what they call lean production system with few inventories and a lot of outsourcing of production to partners these are questions that economic theory can't answer for a specific case that is itself a matter of entrepreneurial judgment what we can say these boundary decisions will be influenced by what costs called transaction costs if it is very costly to outsource my components because it takes a lot of negotiation and renegotiation with a company that builds the engines it will be more cost effective for me to build the engines myself if it is costly to use an independent marketing firm I will tend to do my own marketing at the same time the cost of managing in house production and in house marketing must be taken into consideration as well if it is very difficult to motivate employees to monitor employees and so on well then I may find that it is more cost effective to outsource so the decision to in source or outsource is affected by what the entrepreneur expects the cost of external versus internal production to be of course there is a market for entrepreneurial talent and there are limits to entrepreneurial judgment a skilled entrepreneur cannot oversee an infinite amount of productive activity there are some limits to how many products how many plants how many assets the entrepreneur can own and control in a way that is consistent with satisfying consumer wants and the market will tend to penalize entrepreneurs who grow too fast who acquire too many assets and are not able to deploy them in ways that satisfy consumers because other entrepreneurs will enter and compete against those incumbents Rothbard has a very interesting discussion in man economy and state which I elaborated on in a 1996 article on how the socialist calculation problem the need to be able to calculate profits and losses in terms of money prices limits the size of the firm because as the firm grows larger external markets for its inputs and its out and intermediate products and so on begin to disappear as they are internalized and the entrepreneur loses valuable information that is embodied in those market prices so this places a limit on how efficient a large firm can be and therefore how large a firm can become on the free market again you can read about this in Rothbard and in my 1996 article so what do we get out of all of this Mark's giving me the evil eye so I'll tell you what we get but my claim is that Austrian economics offers a unique account of the production process it's not just a verbal rendition of neoclassical micro and that's what you sometimes hear critics say well you know Austrians talk about inputs and outputs and production and marginal revenue products and so on same thing as Neoclassical it's just the Austrians don't use math I'm trying to the argument I'm offering is that that isn't the case whatsoever so what I'm doing is a causal realistic analysis of factor pricing and factor use it's grounded in subjectivism and marginal utility theory it's built on the fundamentals of human action and not a mechanistic deterministic sort of physics based approach engineering based approach to production it emphasizes the economic not the technological direction of production of course there's a lot more that needs to be done in this area the theory of rent is somewhat underdeveloped in the Austrian tradition the theory of factor rents I've done some research on the internal organization of the firm from an Austrian perspective but I think there's room to do a lot more work in this area relating the microeconomic microeconomics of production to the macroeconomic aspects of the business cycle is something that is extremely important as you've already learned and will be learning more this week the Austrian business cycle theory is not just a theory of entrepreneurial error but it's a theory of the misallocation of productive resources a structure of production that is distorted or is not organized in a way that's consistent with the pattern of final goods and services desired by consumers what causes economic disruptions is that we cannot instantly and costlessly readjust the structure of production when interest rates change when changes in consumer preferences are revealed and so on because factors of production are at least partially specific to particular activities to particular lines of business that's the whole idea Austrian business cycle theory you have a half finished building and then interest rates rise and real estate market crashes you can't instantly convert those bricks into something else you've got a half finished house and it takes a while to convert those resources the relatively specific resources capital in particular to alternative uses it's not that bricks don't have uses don't have value used elsewhere it's that it takes a while to convert them well this gets at the notions of factor specificity the isolability of different factors the degrees to which factors can be used in multiple production processes this is sort of a lynchpin of the Austrian theory of the business cycle but the more explicit connections to the micro aspects micro economic aspects of production have not in my view really been brought out in the Austrian literature this would be a good research project for a young Austrian scholar there's more that can be done as well in critiquing the cost curve analysis I hinted at some of the reasons why Austrians don't use cost curves because cost curves take costs take factor prices as given and go on to do other things whereas Austrians seek to explain factor prices but there's clearly much more research that can be done in doing this kind of critique as well so I guess it's lunchtime and I better stop


Well it reads no.js with windows and windows azure. So what does that bring on to the table per se? So the first things, the first couple of things basically I would like to understand how much rather I would make it's not a guess it's much much more than I guess I'm sure most of you all of you would know what is no.js. that you know it much more than I do. So really the session is to bring to focus that no.js is available on windows all of you know that yes and it's also available on windows azure. So setting one text like to understand you all are familiar with windows azure platform not really and above the node and sure yes. So you tell me what is your motivation for coming to the session what do you want to understand how do you install it, what are the APIs available, how do you work with node or what really do you want to So easy to what VM image would you have still you anybody already worked with node on windows So let's start really just a reason to give context as to node for example a windows developer .net developer they might find very weird why do we even need integration what is node bring on to the table I'm not going to go through this you all probably know what you know the programming So in healthy runs of the v8 runtime your app will use multiple modules which you will install using the npm package manager and if you make use of those you can write your own modules and you set your roots or you can use other things like So node is pretty much excellent for pooling kind of operations for web application development per se Well not so for CRUD operations ok types because really it's driven by even so you know all of that Definitely not very good for highly grid computing sort of you know compute intensive computational scale so I'm sure you know that So let's get on to what we're here to look out for right So node.js on windows came out in week or couple of months back and kind of got stabilized So if you go to node.js.org you have a download section and you probably seen this family you have a download for windows So when you go ahead and click the windows download it's going to install couple of components It first installs the node.exe for your windows optimized It also installs a handler for is called isNode it's a native module which helps you to leverage the capability of is as we shall see as well So I'm not going to run this because it's already got that installed which is what you guys know that it will do that And also it installs the npm that is the pack node package manager for you to go ahead and download the other module set for you Yes it's compatible for 7.0 7.5 It is from 700 So in fact if you go ahead and install the through the portal to go ahead and install the node.exe and your isNode You can probably go ahead and you can in fact when you install that you'll also probably get a sample thing which you can go and take a look at That's something what I have here I just want to highlight this before we go on So it will go and install pretty much what you have to do is in your web.config of your file you will set a path to say Let me open up a simple web.config here that you see If you see it will have a path with the modules as isNode so you can always set rules and path going to be handled by isNode And how will it actually do that? So you have the is and any request that comes to is will go check with what is the handlers in the modules that it will get routed to the isNode And what does isNode do it will go and try to attach itself through and IPC to various node.exe Which means that it kind of leverages the IS capabilities of say load balancing across multiple things So if you have multi-core processor how can you leverage all the cores versus a node.exe single threaded Confidence you basically will spin off more node.exe and manage all of that So all that is taken care by the IIS so that is something which is inherent In fact the documentations will give you these samples and as I said you have multiple samples Like how you just go and start off with the hello world on the node For example when I see explore just has pretty much hello.js file So if you just see this file it has nothing fancy For example call the HttpModule3HS server has a request and response And the response is hello world and just prints probably the version of the node that you have etc So and if you see the web.config file here You see that it all it has is the handler that's pretty much So here we can also go and then browse this app And for example it doesn't have a default setting So that is why I think it's hello.js So if you see we are able to access it So it's wiring up to IS and running it has become like really easy with node So that's one thing which I want you to highlight And similarly if you take a look at the other confidence how you said How can you enable express through the node package manager So let's go on and try to give you some context on windows azure and what So quickly what I was trying to show you here was how IS can Help developers to enable process management scaling to multi-codes For example auto updates so what really IS does is you make any Once you have it hooked on to your virtual directory in IS Whatever changes that you do will get automatically If it sees that there's any change with the js file It's going to take that up and automatically execute that So you don't need to stop restart etc So that is taken care of and the logs over http can be seen So how it was developed Primarily it says that there are very minimal changes to the node.exe Which was done to pull to windows So that is to say that you will pretty much all the functionalities That you have currently is available on linux It's available on windows as well So in fact if you see all we did is we had a js file And in our web.config which is the configuration file For a .NET IS to identify where to root the various file You just put on a handle which says If it is whatever path you get set start Or give it a particular expression kind of thing And in this case you would call the modulize node So then it gets routed to that So now we will do the second half of the discussion Which is on node js on windows as well So for that I would want to pause a bit And go on to a single portal In fact if you want to take back one thing about windows azure Today it will be just this windows azure.com You can go ahead and get all the information on Microsoft's windows azure platform from this portal So windows azure is supposedly called the cloud operating system Frankly it is not an operating system on the cloud It is more like operating system services on the cloud Which means that you can do a lot of things Today what we see is how do you go ahead and deploy your Applications they could be applications hosted on IS Web applications WCF or services Or there could be background applications back in the Confidence et cetera So how can you go and host all of that So really one part of the windows azure is like a Hosting provider so if you don't have your hardware Or you don't have the infra you can use the windows azure But the windows azure as your in its glory is really Much much more than all of this It has various independent services that it can provide In services in terms of data on the wire So you can publish data, you can subscribe data On the wire If you want to do something like authentication Authorization through claims based Which is another important happening concept Now claims based authentication across technology You want to do all of that You can there is something in windows azure For the actual customer service And there is a virtual machine role So for example you have a VHD You want to just upload the VHD You want to use something like the EC2 But truly speaking you still don't have it persistent So there is some fancy around it So it's not really a virtual machine Which is given to you So all that is windows azure platform So talking about the windows azure platform I'd like you to probably take back one basic thing Which is like frankly it could be a marketing job In to say windows azure is operating on the cloud But what do we really mean Or translate it to an operating system So an operating system will do some basic tasks Like what if food.exe it executes food.exe The food.exe can be hosted on IAS It could be hosted as a bank process Bank or process anything So this component what we are here to see Is really using that part of the operating system But why do you even want to do that What is your motivation to move to cloud Why do you There is a lot of buzz today And there is a lot of applications being put in But why have they also invested a lot of time For node.js on windows azure Obviously because node is something Which is although it's time It was developed like what MIT The joint way back in 2009 But still today it's something Where they see a lot of value With a lot of applications built on it etc But the real essence of windows azure Is to say that you have An operating system capability on the cloud Which means you can give your application Run and execute But today from 10 The servers or 10 instances If you want to scale up to say 100,000, 10,000 How easy it is to do a turnkey Scale up today in the current scenario As opposed to on the cloud So in fact there are four main companies Who are big words in the cloud space Like Microsoft Representing Microsoft So I am saying that There is Google with Google apps There is Amazon Obviously with the EC2 And S3 And other companies There is other players like the VM Where they are all coming up But then HP is also said to be one Who are assimilating a lot of these Hardwares trying to build their own clouds So it's like a very thin terminology When you say there's a public cloud There's a private cloud, hybrid cloud Any question? So today when we see So that motivation I hope it is clear right Why are we even talking about Node.js on windows azure Windows azure provides Certain operating system capability One of the capability is You're able to execute some .exe whatever be it What does that cloud What does that operating system Or your desktop should provide Definitely should provide Certain abstract data types For you to watch Those could be Your flat files, C drive Symbol tables For your queues For messaging So it provides all these Abstract data types As storage confidence As service So then they just call it Like storage service So you can get your blocks It's called blocks Which binary large objects You can get your tables Which is more like a one-in-f table It's not like a relational table You have to manage Transaction current So it just gives you those Data structures over the wire And I call it this Now can Node use all of these? Yes So that's what we're here To see which is A Node can use These services That is provided Node can you can Write an application And deploy it on That you can do So it does these things Also does certain other things Like the basic operating System capabilities Of resource management Disaster recovery Scheduling All that is taken care By the Ethernet Windows Azure And we are not really bothered Or we are not able To discuss about this Okay So what if you are I'm sure As we got from the poll All of you are Very used to the Windows Azure world So you could just Go click on develop And then you'll see A bunch of technologies Which have Out-of-the-box Support to Windows Each component Of the Azure At this point Might be very Unclear to you But let's just take We want to post Application We want to use Some data Abstract data types Which are available As a service So it's got an HTTP Rest endpoint Which you can consume Now once you Have an HTTP Rest endpoint You can build Rappers around So the Rappers have been Built obviously For .NET For which You can use Visual Studio Rappers There are Rappers also Which have Now been built For .NET.js So that's Something that you Want to know So when you click On .NET.js It allows you To go and Download and Install So when I Install this What does it Really install So it will Launch something Called a Web platform Installer Which I'm not Will to show You fully But you can Just go To the dependencies That you might Want to go Installing One by One Confident You can go ahead And install All of them So it will Go and install Your Node.exe On your machine It will Install IS Node On your machine It will Go and install The LPL Package Manager on your Machine It will Go and install Something called The Windows Commandlets For Node.exe How many of you Any of you Are familiar With the PowerShell Commandlets? So you Can do this And you Can go and Just search For Node So it will Go and Pull out All the Confidence That you Might want To install For Node So if You see These are the Things So if You add Multiple To show You Something Concrete You will probably Need to Get a quick Hand of What does it take To run an Application On Windows Azure Right So let's see If I have Some tech on it So when you See any Application On Windows Azure Which is the Cloud Operating System From Microsoft Applications Separate Directly As a Process So if you Run on IS It's just a Terminology And if it Runs Outside of IS That's all it is So only Two types of Roles that Run on Cloud The Web And the Work Which means On Node.js You can Use it As running As a Operating And you'll be Using all the Features of IS So you can Create a web app Or Directly Call Node.exe The Worker So what What if I have Web role and I Don't Use The STD Module at all I don't Listen to Any word I just Put it up So what does Your Web Roles So what What does So how does The Azure Work It will hook up to HTTP At 480 As your Default page And But if there is No HTTP Server Listening At all Then From the Azure World It will Allow the Node Application To run But there Will not Be Any I could I mean If I don't Want my Code to be Listening to 480 Or any In the Base I could just Not Use that You could just Not You would Run As a Worker role That's What I could Use the Web Why Why Why Why Why Why How do I Do that Those are the only two ways That you can Probably Create Any Service or application Either you want to deploy An IS Use the IS For IS You have the IS Either If you don't Want to do it Directly Node.exe will be Understand The question was Do we Really need Yeah Right Why That's the whole Part No Okay You are not using The multi-code You are not using All In either case You will In either case You will Even if you use IS You still Spawn Yeah You will So The IS node Will spawn Just not one But multiple It will load Balance Multiple All of that Will do It will also Take care Of auto Updates That information Let's say I am sharing Global state In my application If I was Developing for Linux I don't have to worry Because it's a single Related application I move to Azure And spawns Five of them In the state There is no Common state How do How does the Information share Then I need to Bring in Some kind of IPC Can you use The state Service For the Okay That's IS talking to them Yeah Now If you're Creating an application For cloud Be it not just Any cloud For that matter EC2 is A little different Because you get A Linux machine Your system admin Any platform As a service Your Architecture Should be Stated That's Another story I mean It's Some person Beginning with this Might You could do is Because those are all Configured My question is Can these Instances communicate With each other They share information They can communicate With each other You could use I mean You could use I don't know Distributed cash Service And cash Whatever My question is Does IS tell you How many instances There are You tell IS So you Go and configure That you want Five instances Or one instance Right Because if you Now say that I want this To be Developed And five instances That means Five virtual machines Will be good Each of them Will have their separate IS This is going to be Developed So you Can't make a communication Or the state Is by the Knowledge of cloud It's not Talking from One to another But within An IS Within the Radius Node.exe Is spawning The roadbans are taking care Yeah Okay So we were saying That there are two roles We said there is web And so this is what We said Web role is IS Which will Direct to the IS Node Which will spawn Various Node.exe Is based on The worker role On the other hand What really Happens at the Worker role There's something called The node entry point Which is the entry point For any worker Role And that entry point At the node entry point And as soon as The node entry point Happens It calls the Node.exe Normal case What happens If you're writing on .NET Or any other There are other things Such as You can say When Node Recycle Or create Something called Node entry point .run Which means That It'll execute that Code as a loop Calling one another So you can have Instead of Any other process ends Does it Recycle it Or does it Recycle it No, no, no Recycling of The role Keeps on happening So for example If you've written bad code And it crashes It will keep Recycling them So let's Go and See how Do you go And probably Quickly develop Something on it First and foremost As I said WebPI Will allow you To install A couple of Confidence Otherwise you can Have Repository For Microsoft Confidence And this has PowerShell Commandlets For Windows Azure So you can Go and Search for PowerShell Commandlets So basically You can go Find that there And then You can install The PowerShell Commandlets And once you Do that You can Go and Take a look At Node PowerShell So you PowerShell For Those of you Who Don't know It's Again It's like Very It's like a scripting Thing For Microsoft developers So you can You have Various confidence Add-on Which has For example You want to Create You have a project You're putting it On production You want to Script the deployments For every Thursday Far easier To do The PowerShell Scripts It's got Its own modules Commandlets Commandlets A bunch of commands Which will be Segregated as one name So you can Go and Execute it If you go to Something Like what You can do Something Now that We have this Windows Azure PowerShell Commandlet You can go And say Hey Let's go Start Here you can Go and say Create a new Azure project So if you say Hey This is a new Azure project And just give it a name So Here what it does Is it creates The basic templates For you to do So let's go To this Location here And see What it has The border Cheers Hello So it says That it has The framework What is it built It's got some XML file Forget about the extension It's got a Configuration file And a definition file So The real Cloud Which is Here Which I don't think The actual Quarter of the Cloud is Windows.azure.com So if you Go to the Windows.azure.com Today you need to Sign in With a Live ID Or a Passport ID Once you sign in See here And you have these Various Confidence which you Have access to Like you have a Database on the Cloud which is Called the SQL Azure You have Data sync You have Reporting on the Cloud You have Something like You asked about Cache There is a Caching service On the Cloud Etc. There's also the Confidence that We have Bothered today Which is Personal account This is my Official account So it's like If you have an Account you can Make someone a Co-Admin and they Have the exact same Rights that you have And you can see Multiple So Which means that For example I can open up One account here And say That this Account has Multiple Projects Which have been Deployed to it This means that I have Each of these Projects For example Because Anything that Just It's just again Anything that You can Get from the Cloud over Http or on the Wire It's Supposedly called A service So I call this As a service Which means That this service For example Here that you see Is called The JS food demo Is what the Service is called To say Now this service has A URL Which is By default And it also has Multiple roles That we saw In this case it has Two roles One is The web role The other is A worker role You can have Multiple web roles You can have Only worker roles You can have Any combination Right So How does The hierarchy work First is Your Service It's just called A service Within service You go and Create roles So you might have One module You can put it As a web role Collection You can put it As a worker role For example Whatever you collect You want to Turn it into Process Put it into storage That you want to do As a worker role You can do Any configuration So And each of these Are independent Of each other State wise And other So That we said Now we want to Create Or deploy an application So first We can go And say A service name This is A unique URL Which you need to Give it This is when you're Creating a service So you can Go and give it A unique name Saying If it is already Taken It can flag you Otherwise You can go Now the windows As your Again As the title Also said Scalability Is something Really Important In fact That's One major Advantage For windows Across Geography As you say Currently you have it In all these regions Closest to India Is probably Singapore Hong Kong So you can go And choose Also Apart from this You have CDNs Which are Also Is a separate thing Which you can Subscribe So basically If you want Something in India Something in Mumbai For Pune You can Try to Work Now once You give Two Basically Two Example Kind of Files One File is called A configuration File It's just A configuration File To say Hey I want Ten instances To be Deployed I can Change it Without redeployment Ten becomes 100 tomorrow I just Have to change The configuration File To the Windows Azure SDK Because That will give you The SDK For you to package Your load application Into The form That you can Directly go and upload Right So If you upload These two And say Okay You will go And You will Provide So That's about it Yeah I think The queue Wouldn't be Much Queue Everything would be There are A lot of NPModules That Are Nated by Things Like GOIP module Is there And High Redis For Redis Is there For those modules I mean They don't compile Or NPM Yeah They don't compile The Windows Yeah So Microsoft Also trying to Do something With the Popular modules And Which packages Are working on What's going to come out The roadmap And so on But there is There's a node There was a lot of Node and There was a lot of initiators Of Microsoft Yes Yeah Active development is There In fact All of these Are open source IS node Azure SDK And they are posted on GitHub They can I can look at the source For them as well You know But They're Serving Azure They don't look like clients So for us For Windows Azure We try to talk like But you need to Give me your credit card And today But you won't be charged I'll give you my credit card It's easy to make the instance You'll have to But you won't be charged But you won't be charged For 30 days Yeah And no spending limits So For example For 30 days If you leave your instance By mistake on Previously In fact Before Last December 12th Or 13th For so many hours So by mistake You forget To switch off your instance For example As you see on the portal These instances Are in the running state Right It says ready I can Go ahead And say The lead stop Etc So if you forget To do that That means Virtual mission Is being provisioned For it So If you do that Then you Overcharge If you exceed The limit But now The application For example See Here's the demo So here's the For example There is an application Which has a web role And a worker role I said web is something On IS And not on IS So if you see There are two One is So the application is like This You want to track Some stock quotes Of 3, 4 Things Microsoft, Apple Google Intellect And Just randomly Generating a number Of quotes And And this is done As a worker Or a background Process This quote The background Process uses The windows azure Table storage To put that Data on the table The web front end Checks for the last 10 seconds What is data Has come on the table And displays the data Just see this Run And then I will Probably So You know That You know That What This is the node azure sdk Yeah So as I told you As we said Hey we can write something Like new azure node app You will get the folder structure Then you say Hey create a node web role You will get a web role Hey create a node worker You will get the web role Now you can say NPM manager To install an express If you want Or whatever other packages That you want So here you see This For example When I ran this command Which was The windows azure sdk Comes with a local emulator Or the simulator of the cloud So the simulator of the cloud Looks something like this So we can open it And take a look at it And This Simulator Will try to just Simulate If you deploy to the real cloud How is it on your desktop Right So here We have gone ahead And deployed this Service here And you get some This Is the output That is being generated In fact if you see That If you keep on generating Some new For 10 seconds So This is coming from the azure tables Now how do you even Understand what is happening Or Where is the azure tables For example So There are various ways To look at azure tables The easiest is Through visual studio Otherwise you build Your own As there is The restenable So you build your viewer for it But you are just going And taking There is a table We created a table Called ports And on the ports We can go and take a look At the table In fact we can go And See that It has a lot of data Into this table How is this data being fed You can go And See this So there is something called get quotes If you open up the get quotes See what is there inside it It just has a server.js And it has Node.exe Which means that This is a worker role All it does Is this node.exe And you can set certain configurations On app.config For example I want to collect To this storage Etc So if you open up this Server.js And see what It looks like You see that Extremely Simple That's about it In fact there is an azure table So you have a handle To the table You can take a These are the table operations You can insert it Now this keeps inserting Rows into the table At a specified time interval Which is also specified there And Yeah And then there is the other thing Which is the web role Which we set So if you go to the show quotes Here The web role Will look at And You see the web role It's a little interesting To take a look at How this is organized You have The web.config And you also have The modules Where we can include The modules Which we want And if you see You have the is-node here Point to note Is this is-node Is Installed to the Real Windows Azure When you deploy it Because for example When you're creating a virtual machine You will need to Give the virtual machine Node.exe And is-node right Because it's not Good to have any Compact So you're packaging that Also and then uploading that So all of these I'll just close with Why can't this be part Of the VHD itself? The Windows Azure VMs Are Windows Server 2008 R2 With .NET 4.2 And IS 7.5 That configuration is there On the VM So when you want to have Node instance You're going to have Node.exe Also Why do you need to Shift your own Node.exe Not shift You go and upload So as of today The cloud is structured Such that These are the only confidence Anything Outside of that Third party Node.exe is not in the VM It's not already there In the VM I don't know I don't understand I thought maybe You guys are So It's only dotted It's actually Seamless to you At the end of the day You just have to Even creating something Call a start-up task For you to say While you're booting The VM Do this Silent installation And start-up Take care of the Versioning of Node Also The version you're testing Again gets You don't have to wait For Azure please And we'll close with that Online portal Windows.azure.com The main site is Windowsazure.com You could go to Bit.ly Node.js download That's pretty much All the Node.js downloads For Azure And The web platform Install the Microsoft