June 2017
Intermediate to advanced
400 pages
10h 32m
English
The most important function for demonstrating this recipe is PerformOperation. This function takes an interface to the storage as a parameter. This means we can dynamically replace the underlying storage without even modifying this function. It would be simple, for example, to connect storage to a separate API in order to consume and modify it.
We added a context to these interfaces to add additional flexibility and allow the interface to handle timeout as well. Separating your application logic from the underlying storage provides a variety of benefits, but it can be difficult to pick the right places to draw boundaries, and this will vary widely by application.
Read now
Unlock full access