简体   繁体   中英

C# Console Application (game back-end): What's the easiest (but also scalable) way to host it?

I built a c# console application that's my game back-end.

I am considering using Azure, but not sure which Azure product is right for me since Azure App Service doesn't -by default- allows me to host a c# console application.

I'd really appreciate it if someone could point me in the right direction because I got confused by the huge amount of similar products Azure provides.

If you want to host it on the cloud, it makes no sense it is a console appliction since you will not be logged on that server and watch the console output, unless you get an Azure Virtual Machine and host it there and then monitor it via RDP connection, but why would you do that...!

In general you can expose back end logic via WCF services hosted on IIS or also self hosted on Windows Services, and instead of console output you can then redirect taht output to either log files or database.

There should not be too much to rewrite and if your app is done well effort is limited to transition from console app to windows service or IIS WCF back end.

Also have a look here for some ideas on Azure service/backend offering: what is equivalent of a windows service on azure?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM