You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/refguide/runtime/mendix-client.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,19 +96,17 @@ For more information about the communication between the Mendix Client and the R
96
96
97
97
This communicates the current state of the app (held in the object cache) to the Runtime Server. As the state is held in the Mendix Client, the Runtime Server can be stateless. This ensures that it is easier to scale your app horizontally by adding more instances as any instance can handle any request.
98
98
99
-
To avoid performance issues, the Mendix Client does not send the entire state to the runtime. State handling decides which parts of the state should be sent by analyzing the model during the deployment of the applications.
99
+
To avoid performance issues, the Mendix Client does not send the entire state to the runtime. State handling decides which parts of the state should be sent by analyzing the model during the deployment of the applications. This analysis consists of two parts.
100
100
101
-
Determining which parts of the state should be send to the runtime consists of two parts.
101
+
Firstly, during deployment, all microflows “reachable” from the client are analyzed. For example:
102
102
103
-
During deployment, all microflows “reachable” from the client are analyzed, such as:
104
-
105
-
* Event handler of entities
106
-
* Microflows called from a nanoflows
103
+
* Event handlers of entities
104
+
* Microflows called from a nanoflow
107
105
* Microflows called from the page
108
106
109
-
This analysis is done based on the microflow parameters and their usages throughout the microflow. Any time an association is used in the microflow, the association is marked, and will also be sent along in the request if needed. In some cases, such as Java actions, the analysis is not done as it would be too performance heavy. In that case, all objects associated to the microflow parameters will be sent along.
107
+
This analysis is done based on the microflow parameters and their usages throughout the microflow. Any time an association is used in the microflow, the association is marked, and will also be sent in the request if needed. In some cases, such as Java actions, the analysis is not done as it would be too performance heavy. In that case, all objects associated with the microflow parameters will be sent along.
110
108
111
-
For other (non-microflow) actions, such as committing or deleting objects, a more simple analysis is performed on the client-side to determine which associations should be sent along.
109
+
Secondly, for other (non-microflow) actions such as committing or deleting objects, a simpler analysis is performed on the clientside to determine which associations should be included in the request.
112
110
113
111
For more detailed information about state, see this blog: [https://www.mendix.com/blog/the-art-of-state-part-1-introduction-to-the-client-state/](https://www.mendix.com/blog/the-art-of-state-part-1-introduction-to-the-client-state/). This also includes a worked example where you can see, and duplicate for yourself, how state is passed to the Runtime Server.
Copy file name to clipboardExpand all lines: content/en/docs/refguide9/runtime/mendix-client.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,19 +98,17 @@ For more information about the communication between the Mendix Client and the R
98
98
99
99
This communicates the current state of the app (held in the object cache) to the Runtime Server. As the state is held in the Mendix Client, the Runtime Server can be stateless. This ensures that it is easier to scale your app horizontally by adding more instances as any instance can handle any request.
100
100
101
-
To avoid performance issues, the Mendix Client does not send the entire state to the runtime. State handling decides which parts of the state should be sent by analyzing the model during the deployment of the applications.
101
+
To avoid performance issues, the Mendix Client does not send the entire state to the runtime. State handling decides which parts of the state should be sent by analyzing the model during the deployment of the applications. This analysis consists of two parts.
102
102
103
-
Determining which parts of the state should be send to the runtime consists of two parts.
103
+
Firstly, during deployment, all microflows “reachable” from the client are analyzed. For example:
104
104
105
-
During deployment, all microflows “reachable” from the client are analyzed, such as:
106
-
107
-
* Event handler of entities
108
-
* Microflows called from a nanoflows
105
+
* Event handlers of entities
106
+
* Microflows called from a nanoflow
109
107
* Microflows called from the page
110
108
111
-
This analysis is done based on the microflow parameters and their usages throughout the microflow. Any time an association is used in the microflow, the association is marked, and will also be sent along in the request if needed. In some cases, such as Java actions, the analysis is not done as it would be too performance heavy. In that case, all objects associated to the microflow parameters will be sent along.
109
+
This analysis is done based on the microflow parameters and their usages throughout the microflow. Any time an association is used in the microflow, the association is marked, and will also be sent in the request if needed. In some cases, such as Java actions, the analysis is not done as it would be too performance heavy. In that case, all objects associated with the microflow parameters will be sent along.
112
110
113
-
For other (non-microflow) actions, such as committing or deleting objects, a more simple analysis is performed on the client-side to determine which associations should be sent along.
111
+
Secondly, for other (non-microflow) actions such as committing or deleting objects, a simpler analysis is performed on the clientside to determine which associations should be included in the request.
114
112
115
113
For more detailed information about state, see this blog: [https://www.mendix.com/blog/the-art-of-state-part-1-introduction-to-the-client-state/](https://www.mendix.com/blog/the-art-of-state-part-1-introduction-to-the-client-state/). This also includes a worked example where you can see, and duplicate for yourself, how state is passed to the Runtime Server.
0 commit comments