Replies: 1 comment 2 replies
-
@madyke, @lukedgr is there someone that can help me out with this one? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm developing an extension for CRT/MPOS.
For each MPOS transaction, there are a range of possible API calls that I can make to an external service.
For example, for each qualifying transaction, upon adding customer to the cart, I have to call an API to create a new session with the external service.
Due to the high volume of transactions, there is potential for high volume of these API calls.
I was wondering if the community has some recommendations how to reliably make outgoing API calls from CRT.
I've read over the following blogs which discourage the use of
HttpClient
:I'm currently trying to use
IHttpClientFactory
instead. Dependency injection.Has anyone implemented something similar for API calls? Or have any suggestions on which pattern to use which is optimal and most secure (given the way that CRT extension framework is designed)?
It would be really nice if Microsoft can provide a sample extension for a scenario like this.
Beta Was this translation helpful? Give feedback.
All reactions