How to reduce time while calling a Microflow From Nanoflow?

0
I have a page there having some data grid inside data grid on click i am using a Nanoflow inside Nanoflow i am calling some microflow . while going from Nanoflow to microflow in the server it self its taking 4 secs & again after microflow ends in the server again taking 1 sec.  Below shown picture is a nanoflow Get data is a Microflow i have added console logs to check nanoflow logs .    
asked
1 answers
0

Hello Archana,

hen a nanoflow calls a microflow, there’s always some extra time involved. The nanoflow runs on the client, but the microflow runs on the server.

So what happens is:

  • Client sends a request → server runs the microflow (4s in your case).

  • Then the result needs to come back to the client → this adds 1s (network + data handover).

That extra second isn’t the server being slow, it’s just the roundtrip.

To improve performance:

  • Keep logic on either client or server instead of bouncing between them.

  • Only return the data you really need (avoid sending big objects back).

  • Optimize retrieves in your microflow.

In short → the 4s is your microflow execution, the extra 1s is just the client-server roundtrip, which is expected.

 

Regards

Reemali

answered