Stopping short and latency budgets

In Chapter 7, Dependency Injection with Method Injection, we used method injection to introduce the context package and request-scoped dependencies. By using context as a request-scoped dependency, we were then able to implement latency budgets and stopping short. With these in place, we are able to reduce our resource usage during abnormal system behavior. For example, if retrieving data (from the upstream currency conversion service or the database) is taking so long that the client is no longer waiting for a response, we can cancel the request and stop any further processing.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.73.127