1. Nilotpal Bera
  2. Beta Testing
  3. Tuesday, 13 July 2021 14:29 PM UTC

Hi,

Greetings!

We deployed our apps using PowerServer 2021 Beta.

Just need to know if the client downloaded app directly hits the Server API's or is it like the client requests the IIS web server and web server forwards the request to API Server.

Thanks in advance.

 

Best Regards,

Nilotpal

 

 

Accepted Answer
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 13 July 2021 14:44 PM UTC
  2. Beta Testing
  3. # Permalink

Hi Nilotpal,

The client will try to access the URL you configured in the Web APIs tab in the PowerServer project. It really depends on how you configure the server. If you're using IIS, Nginx or Apache, you configure these Web Server apps to forward the request (by reverse-proxy or some other method) to the Server API application running in the server. If you're using Kestrel by running the Server API project directly, the request comes straight into the Server API

Basically, the client application will request the URL you specify, and it's up to you to decide how and by whom this request is dispatched.

If you're talking about a testing/development machine in which your client app and Web API app are running on the same machine, and you launched the API either from Snap Develop or the toolbar button on PowerServer, then the request comes straight to the Server API

I hope this answers your question

Regards,
Francisco

Comment
  1. Nilotpal Bera
  2. Tuesday, 13 July 2021 15:03 PM UTC
Thanks a lot Francisco, that answers the question.



So if we go with one web server and one app server(API's running via IIS) and specify the app server ip in PowerServer project web api url, then client downloaded app will send the request directly to the app server. Please correct if wrong.



Thanks again for the quick turnaround.

  1. Helpful
  1. Francisco Martinez @Appeon
  2. Tuesday, 13 July 2021 17:14 PM UTC
That is correct. Assuming IIS is correctly serving the Web API on the URL you configured in the PowerServer project, yes it should connect



Regards,

Francisco
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.