The size ofclient-side libraries, and the features included in them, can vary widely. We will discuss the pros and cons of including various responsibilities, like exposing network errors, or making service calls, validating service responses, caching expensive API calls, handling errors, and alarming when things go wrong. Key topics in this chapter include
How much code should live in a client library?
Libraries should not have business logic, ever.
Handling errors is a must, and depends on the ...