Here we have a project where we providing flight booking service building using .netcore 3.1. And Microsoft.Tools.ServiceModel.Svcutil is used to generate Reference.cs model where we store the metadata from the third party API service.
Our third party API Requests and Responses are in XML file format. And we Saving each Request and Response (Before sending the request and after getting the response) to 3 place, Local Logs, AWS RDS - PostgreSQL and AWS s3 buckets. - after all savings then only we send the response to Our main back-end via our private api and then website receives the response from our main back-end via the our public API..
So in summary we runs 3 APIs here,
- Public API - client request and response.
- Private API - (Saving response to 3 places - logs, database and AWS s3)
- Service Provider API
And the issue is sometimes our private API gets slow, nealy for 56 sec. Is there any way we can improve our API performance, in this manner.