web - Backend Server fetching data vs UI fetching data -


i have architecture question.

i working on system architecture employee information system show employee information. information needs shown user stored in 2 systems. on ui user need show data in consolidated view. have 2 option approach this.

option#1:

one backend server fetches both data 2 systems , send ui display.

option#2:

one backend server sends data 1 system , links data other system.ui fetches data other system display on ui.

according me option#2 better since data fetched ui , when needed. concern approach ui needs make repeated calls system2 makes lot of http requests.

can suggestions on option better , why?

you can put both calls in parallel instead of sending links first service..


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -