4

Can ASP.NET MVC application somehow interact (for example synchronize account data) with websites written on top of NODE.JS and hosted on some of 'node-clouds'?

4
  • 2
    Em, you fire one application on one port and the other on another. And they can communicate. I'm not sure what's the question. Commented Aug 2, 2012 at 10:52
  • @Sohhee, @freakish I know about Microsoft porting the Node.js. But I'm interested in interaction with Node.js application on its native (*nix) platform. Commented Aug 2, 2012 at 10:59
  • That's what I'm saying. You fire Node.JS app as a stand-alone server on one machine and you fire your ASP.NET server on second machine ( they do not have to be physically different ). Then you can communicate between those two servers via REST. It's basically the same as communication between browser and the server. Commented Aug 2, 2012 at 11:01
  • Ok I understand), please write your comment as an answer so I can accept it. Commented Aug 2, 2012 at 11:03

2 Answers 2

2

Yes you can.

Jon Galloway has an article on this exact topic.

Sign up to request clarification or add additional context in comments.

Comments

1

This is a general problem. If you have two applications written in two different languages or running on two different machines or whatever the reason is that makes them separate they can still communicate.

You fire one server on one machine and the other on another. Servers are meant to serve things, so their main functionality is to listen on a port and respond to incoming requests. But they are not limited to this. They can fire requests as well! There is no reason why server can't be a client at the same time.

Basically what you need to do is to add client functionality to the server, so it can make requests to other servers. Doing this in the context of web development is a lot easier, because we already have well known REST ( and most languages have libraries for making and parsing REST requests/responses ).

Also keep in mind that you need to implement some security features when doing this. For example when your Node.JS server is serving something only for your ASP.NET server you might want to restrict this Node.JS server, so it won't server this content to entire internet.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.