chronoxor / NetCoreServer

Ultra fast and low latency asynchronous socket server & client C# .NET Core library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution
https://chronoxor.github.io/NetCoreServer
MIT License
2.63k stars 550 forks source link

Azure Hosting model #55

Open riccardobecker opened 4 years ago

riccardobecker commented 4 years ago

Hi there, first of all, thanks for NetCoreServer, great product.

What is your opinion on how to host a "NetCoreServer" on Azure? AppService? How to put multiple instances of the server?

I am curious about your opinion on this

regars, Riccardo

chronoxor commented 4 years ago

Yes just host one or more servers in your AppService, bind them to different ports and start them:

var content = new HttpsServer(context, IPAddress.Any, 8443);
var chat = new ChatServer(context, IPAddress.Any, 8444);

content.Start();
chat.Start();
riccardobecker commented 4 years ago

Well, yes it's that easy on startup of the appservice true. Some questions:

Did you already run it on Azure? How did you benchmark it? How would you compare the performance against the aspnetcore default websocket implementation?

thanks!