Forum Discussion
Henrik1995
Mar 14, 2022Copper Contributor
Should i use IIS or Tomcat for asp.net rest api?
Hello,
i want to create a Rest-API between my program and a database. My task is it to use http://ASP.Net and Tomcat as the webserver.
I didnt find any good answer for this combination, but many comments say that it is not possible to run http://asp.net programs with apache tomcat.
In my opinion i should better use http://asp.net core with Microsoft IIS. Maybe someone can tell me the right or better way to implement it.
Thank you very much!
1 Reply
- IlyasBakirovCopper ContributorMaybe late answer, but anyway I will answer to it. Firstly Tomcat is Java Servlet Container, shortly web server for Java web application and does not support ASP. Look at technology stack you are going to write/code/develop your program. If it will be Java based or in Java environment then any Java based web server can host Java web application. If you do .Net or .Net Core (built-in Kestrel web server) then yes native environment IIS is preferable and for Core you can run on Linux as well under Apache/nginx reverse proxy server.