Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
jvx:communication:connections [2018/02/01 10:36]
admin
jvx:communication:connections [2020/06/08 15:57] (current)
cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation)
Line 1: Line 1:
 ~~Title: HttpConnection vs. VMConnection vs. DirectServerConnection~~ ~~Title: HttpConnection vs. VMConnection vs. DirectServerConnection~~
  
-Mit JVx werden üblicherweise Multi-Tier Anwendungen entwickelt, mit dem Schwerpunkt auf DatenbankenUm den Datenaustausch zwischen Client und Enterprise Tier zu ermöglichenwird eine Transportschicht benötigtDiese ist in JVx einerseits sehr abstrakt definiert und andererseits wurde bereits eine Implementierung basierend auf http(s) ​umgesetzt.+JVx is generally used to develop multi-tier applications with an emphasis on databasesTo facilitate data exchange between client and enterprise tiera transport layer is requiredThis transport layer not only has a very abstract definition ​in JVx, but an implementation based on http(s) ​already exists.
  
-Die TransportbzwKommunikationsschicht wurde Protokoll unabhängig designed. Dadurch ist es problemlos möglich, die Kommunikationsklassenohne Anpassungenfür unterschiedlichste Protokoll Implementierungen wiederzuverwenden.+The transport or communication layer was designed protocol-independentIt isthereforepossible to use the communication classes for different protocol implementations without adaption.
  
-Nachfolgend ein Beispiel für die Protokoll unabhängige Verwendung:+The following is an example of protocol-independent use:
  
 <file java> <file java>
Line 17: Line 17:
 </​file>​ </​file>​
  
-Durch das http Protokoll wird definiert, das ein ein Web- bzwApplikationsserver eingesetzt werden mussDieser Umstand erschwert natürlich die Entwicklungda immer ein Applikationsserver gestartet werden muss bevor die eigentliche Business Logik getestet werden kann.  +The http protocol defines that a web or application server has to be usedThis makes development more difficult as an application server always has to be launched before the actual business logic can be tested 
-Natürlich gibt es mit Jetty einen leichtgewichtigen Applikationsserver oder auch die Eclipse WTP mit integrierter ​Tomcat ​UnterstützungDennoch müssen Abhängigkeiten berücksichtigt und Konfigurationen durchgeführt werden. Darauf kann auch gerne verzichtet werden.  +Of courselightweight application servers are available such as Jetty or the Eclipse WTP with integrated ​Tomcat ​supportNonetheless,​ relationships have to be considered and configurations have to be made.  
-Vor allem wenn es um die Lokalisierung von Kommunikationsfehlern gehtJe weniger Komponenten berücksichtigt werden müssenumso besser gestaltet sich die Suche.+This is something we would rather live without, especially the search for communication errorsThe fewer components have to be consideredthe easier the search will be.
  
-Um den Entwickler bestmöglich zu unterstützen enthält ​JVx neben der HttpConnection auch die VMConnection ​und DirectServerConnection.+To support the developer as much as possible, ​JVx includes the VMConnection ​and the DirectServerConnection ​in addition to the HttpConnection.
  
-Die VMConnection ​kann als pendant zur HttpConnection ​gesehen werden, mit dem Unterschied +The VMConnection ​can be seen as equivalent to the HttpConnection ​with the only difference that the communication happens without an application server and without ​http protocolThe server is automatically started ​in the current ​VM and, just as with the HttpConnection, is accessed via streamsThe transferred objects are always serialized.
-das die Kommunikation ohne Applikationsserver und one das http Protokoll auskommtDer Server wird automatisch ​in der aktuellen ​VM gestartet und wird wie auch bei der HttpConnection ​über Streams angesprochenDie zu übertragenden Objekte werden immer serialisiert.+
  
-Für den Entwickler ist diese Art der Kommunikation schon eine enorme Vereinfachungdoch es +This type of communication makes the developer´s work much easierbut there is an even better way.
-geht noch etwas besser.+
  
-Sowohl die VMConnection ​als auch die HttpConnection ​serialisieren bzwdeserialisieren die Objekte. Wenn der Server bereits in der selben ​VM wie der Client läuftkönnte auf die Serialisierung doch ganz verzichtet werden.+Both the VMConnection ​and the HttpConnection ​serialize and de-serialize the objectsHowever, if the server is running on the same VM as the clientserialization would not be necessary
  
-Genau für diesen Fall wird die DirectServerConnection ​verwendetDamit werden Server Funktionen direkt über die Server Klasse aufgerufen und Objekte direkt an Methoden übergeben. Die Serialisierung entfällt und das wirkt sich natürlich auch positiv auf die Performance aus.+In this case, the DirectServerConnection ​is used, which means that server functions are called directly via the server class and objects are passed on to methods directlyThere is no serialization,​ which positively affects performance.
  
-<fs 20px>Hinweis</fs>+\\  
 +**<fs 20px>Note</fs>**
  
-Der Entwickler muss zu keiner Zeit auf das Kommunikationsprotokoll Rücksicht nehmen, da dieses von JVx gekapselt wirdEr muss sich jedoch bewusst seindaß zwischen ​DirectServerConnection ​und VMConnection ​bzw. HttpConnection ​ein Unterschied im produktiven Betrieb besteht. Denn die Objekt Serialisierung muss bei der Fehlersuche berücksichtigt werden+At no point does the developer have to take the communication protocol into account as it is encapsulated by JVx. Howeverwe have to be aware of the difference in operation between ​DirectServerConnection ​and VMConnection ​or HttpConnection ​as the object serialization has to be considered during troubleshooting
-Außerdem wird bei VMConnection ​und der DirectServerConnection, ​mit implizit gestartetem Server, der Server beim Applikationsende ebenfalls beendet.+In addition, during a VMConnection ​or a DirectServerConnection ​with implicitly started serverthe server is stopped when the application is stopped.
  
-Im Entwicklungsprozess empfehlen wir den Einsatz der DirectServerConnection. ​Wenn spezielle Serializer implementiert oder Serialisierungsfehler ​debugged ​werden sollenführt kein Weg an der VMConnection ​vorbei.+During the development process, we recommend the use of the DirectServerConnection. ​If special serializers have to be implemented,​ or serialization errors have to be debugged, ​there is no way around the VMConnection.
  
-Im produktiven Betrieb ist die HttpConnection ​oder eine spezielle ​IConnection ​Implementierung notwendig.+During productive operation, the HttpConnection ​or a special ​IConnection ​implementation is required.
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information