I read today Microsoft wants to integrate php support in .NET. That would be realy nice
If you're going the ASP.NET route then I'm sure I'll contribute also.
I read today Microsoft wants to integrate php support in .NET. That would be realy nice
This exactly what I mean. MPBlue PPC has it own plugin to control MP and as far as I know it uses .NET remoting to control MP.
In MPW it is a little bit more complicated. The PHP part comunicates with an web service written in ASP.NET. And this web service also uses .NET remoting to communicate with MP and ECP2 Plugin only allows .NET remoting. So MPW has an unnecessary overhead.
So it would be better if MP has only one remote interface and I think that a web service would be the best solution, because many programming languages support web services.
However, the advantage of my architecture is that it does not require the web service to be running on every client. Each client will have to run the ECP2 plugin, however, only one client/server will have to run the web service, which will automatically route the requests to the appropriate machine. This should make it much easier for web service users to communicate with MP.
I don't believe that there is a significant performance lag with using .NET remoting coupled with a web service. Another advantage of this is that .NET applications can communicate directly with MP using MP objects without having to serialise and deserialise to and from XML (improving performance). This is in fact the main performance lag - the serialisation of MP objects into XML by the web service and unfortunately cannot be helped given the nature of web services.
I don't believe that there is a significant performance lag with using .NET remoting coupled with a web service. Another advantage of this is that .NET applications can communicate directly with MP using MP objects without having to serialise and deserialise to and from XML (improving performance). This is in fact the main performance lag - the serialisation of MP objects into XML by the web service and unfortunately cannot be helped given the nature of web services.
But in fact .NET remoting has also to serialise and deserialise the MP objects for transferring them to another process or other computer. Sure the performance is better than the performance of serialising and deserialising to and from XML.
Therefore I would prefer simple new objects only for the web service, which are not so complicated as MP objects. Just a simple interface with simple objects. This make it also more easy for the clients.