Need inputs to design a web application. The scenario is described below.
Would like to develop a web application using .net core the web application will just have the presentation layer meaning the web application will use a third-party API which we would not have any control over.
The third third-party API is stateful API which runs as a web farm behind a load balancer having a sticky session.
The web application we would build would just call the third-party API to get the data The authentication would also be managed by third-party API.
The presentation layer (web application) we will build will just call the third-party API based on user action. It can be so that the user clicks a button and or makes any action that would need a couple of third-party apis to call and then consolidate the response in one view-model and pass it to the browser.
Would like to understand since authentication and session management are done through cookies at the party API layer do we need to do any session management or just sending back the response in our view model will work?
like after authentication we extract the headers from response from API past it to the client though our response in presentation layer and there after for every request we extract the header sent by the browser and pass it to the API call and then extract the header from the response given by thrid party API and pass the header to the response to the client browser.
If we too host the application as a web farm in multiple servers do we need to have a sticky session for our web application too as the third-party API is stateful?
You dont have to worry about session managemnt as authentication and authorization is handled by the third aprty API. You have to just extract the headers from response and add it to next request.
Regards Server farm, you dont have to maintain the sticky sessions.