BlackSova
BlackSova

Reputation: 145

Can i use C# ASP.NET and Node.js for my server logic?

I want to ask if it's possible to use ASP.NET and node.js together for the server side of my app ?

Example: website which is a game and it will have chat before the game starts that will be build on node.js and when the game starts asp.net will be used for the CPU intensive tasks.

Upvotes: 0

Views: 62

Answers (2)

Dan Kuida
Dan Kuida

Reputation: 1057

There is no reason to use both ASP.NET and node , since those 2 are interchable and resource wize would be a waste. node could cover all of your needs and putting an IIS especially wiht a scale of several servers would be a waste. you could use express for the template.

Upvotes: 0

Rubysmith
Rubysmith

Reputation: 1175

Yes you can safely transfer all CPU intensive tasks by making asynchronous calls from Node.js to a REST API written in C# or any other multithreaded language which handles CPU heavy processing and use the in built asynchronous feature of Node.js to handle all requests to your gaming app.

Upvotes: 1

Related Questions