Frage

Ich bin eine Raster-Anwendung zu schaffen, die mich Software-Pakete senden erfordert, die eine Klasse an den teilnehmenden Knoten in meinem Gitter wickeln werden.

Die erste Idee, dass ich herauskommen, war die Master-Knoten jeden Knoten Kontakt haben (einen Windows-Dienst ausgeführt wird) und eine Anordnung, die eine Klasse zu senden, die zusammen mit einer CONFIG-Datei enthält, na ja, Konfiguration auf eine gemeinsame Schnittstelle haftet Informationen.

Gibt es einen besseren Weg, dies zu tun? Abgesehen von der Diskussion darüber, ob dies ein Push oder ein Pull sein sollte, was ist der beste Weg, zu bekommen, was heraus effektiv ein Software-Update? Es wäre toll, wenn ich etwas ähnlich einen WCF-Dienst von dem Client-Knoten genannt verwenden konnte, aber das wäre natürlich, lassen Sie die reale Bearbeitung auf dem Master-Knoten, die würde effektiv die Gruppierung aufheben meinen Cluster.

War es hilfreich?

Lösung

You can send the assembly bytes and load them directly into the runtime. It work well for managed code. I'm not aware of a better way to do this. And yes, use a push model :)

Andere Tipps

This seems like a valid approach. This is essentially how most .NET plugin models work.

The only other approach that I can think of would be sent script files back and forth. You could make your own custom DSL, but I think that that would be overkill. Using something like Iron Ruby or Iron Python would be a lot simpler, as well as a lot more powerful. Another thought would be to send PowerShell scripts.

I have never tried this, but it's also possible to send C# or VB files back and forth and then compile them when they need to be run. However, I see little advantage of this over the previous two suggestions.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top