210
Views
8
Comments
Solved
Reactive Web, Application Request Time Out
Question

Hi there,

I am still confusing. when web reactive is using asynchronous method, the client action calls the server action asynchronously. When the server action takes long time, is there still application request timeout?

regards and thanks

mvp_badge
MVP
Rank: #5
Solution

Because the client action and the interface works asynchronously. That's the reason why the change of a variable in the client action makes the interface respond automatically while the action is still running. 

But in the client action, when you call a server action, the execution must wait for the server action to finish its execution before resuming, or you would never be able to use its reaponse on the next node. 

mvp_badge
MVP
Rank: #5

Hello IBOX, 

A call to a server action from a client action is not asynchronous. The execution of the client action will wait to the server call to return an answer before resuming execution. 

Cheers. 

Rank: #218

Hi, thank you,

However in here https://www.outsystems.com/forums/discussion/52761/reactive-web-the-next-generation-of-web-apps/, it is said:
Asynchronism in server communication keeps your apps always responsive. For example, while an app is executing a server-side action, it continues to run and respond to user input in the browser.


regards 

Rank: #218

In that article it is also said that server action is called using REST API. How comes it is asynchronous?

regards

mvp_badge
MVP
Rank: #5
Solution

Because the client action and the interface works asynchronously. That's the reason why the change of a variable in the client action makes the interface respond automatically while the action is still running. 

But in the client action, when you call a server action, the execution must wait for the server action to finish its execution before resuming, or you would never be able to use its reaponse on the next node. 

Rank: #218

So, 

1. It is asynchronous between client action and interface

2. it is synchronous between client action and server action

Is it? 

thank you

mvp_badge
MVP
Rank: #5

Afaik, yes :) 

Rank: #218

Ok, thank you Sir

Rank: #13231

Good Day Eduardo,

I would like to ask for your advice, im using reactive web also. Calling a server action from a Client action, there is a default Server Request Timeout set. When that certain server timeout  was hit, will it leave the called server action running event server timeout is already invoke in client side? Currently my observation is even timeout was raised in client side, the server action will still run and finish.