Question: ASP.NET 5 Conceptual Questions

Question

ASP.NET 5 Conceptual Questions

Answers 1
Added at 2016-01-12 22:01
Tags
Question
  1. If I remove Kestrel dependency from project.json my web application wont start. Does that mean ASP.NET 5 is dependent on Kestrel? Is it a replacement of IIS?

  2. Is DNX a collective name for .NET Core and Full .NET with CLI features?

  3. In Windows, there is IIS to host ASP.NET 5 apps. What is the equivalent for Linux? nginx or Apache maybe?

Answers
nr: #1 dodano: 2016-01-13 11:01
  1. If I remove Kestrel dependency from project.json my web application wont start. Does that mean ASP.NET 5 is dependent on Kestrel? Is it a replacement of IIS?

No. However, it requires a server. There are a few layers for HTTP applications (simplified version):

  • Bootstrapping: DNX
  • Hosting: which knows how to wire the server and your application together.
  • Server: which knows how to handle HTTP requests.
  • Application Layer: your application layer.

So, you can replace the server with any compatible one, doesn't have to be Kestrel.

  1. Is DNX a collective name for .NET Core and Full .NET with CLI features?

No, it's just the bootstrapper which loads the proper CLR version and gets you up and going. It will be probably replaced by dotnet CLI. That story is a bit vague today but keep your eyes open for new announcements.

  1. In Windows, there is IIS to host ASP.NET 5 apps. What is the equivalent for Linux? nginx or Apache maybe?

Anything that suits you. That could be even HAProxy. The team will probably have boilerplate stuff with one of them but at the end of the day, it's all up to you. Watch below two videos, they have good info on server story and Linux:

Source Show
◀ Wstecz