You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While updating the version of AutoMapper used in parts of the application (in order to switch to the non-DI v13> package), it occurred to me that perhaps the Discount Grpc project should be using a custom mapper class instead - which should be quicker (but slightly less convenient).
Otherwise, we're potentially losing part of the speed advantage that Grpc offers.
The text was updated successfully, but these errors were encountered:
The Basket API also uses AutoMapper when updating (or POSTing to) a customer basket.
It uses a call to the Discount Grpc service to retrieve any current discounts for a particular product when it is added to a basket.
Testing in Postman, I found that with 2 items in a basket the request was completing in anywhere from 125ms to 288ms.
It would be interesting to see how much could be shaved off that by using what would be a very simple, one-way custom mapper class instead of AutoMapper.
While updating the version of AutoMapper used in parts of the application (in order to switch to the non-DI v13> package), it occurred to me that perhaps the Discount Grpc project should be using a custom mapper class instead - which should be quicker (but slightly less convenient).
Otherwise, we're potentially losing part of the speed advantage that Grpc offers.
The text was updated successfully, but these errors were encountered: