官术网_书友最值得收藏!

Low-level thinking

It's also advantageous to provide some low-level services that provide a convenient API to access things, such as HTTP remote requests and/or logging. Doing so will allow you to create unique characteristics that you or your team like to work with when interacting with low-level APIs. For instance, maybe your backend API requires a unique header to be set in addition to a special authentication header for each request. Creating a low-level wrapper around an HTTP service will allow you to isolate those unique characteristics and provide a consistent API for your app to interact with, to guarantee all the API calls are enhanced with what they need in one place.

Additionally, your team may desire an ability to funnel all the logging code to a third-party log analyzer (for debugging or other performance-related metrics). Creating low-level wrappers with the lean code around some framework services will allow your app to adapt to these potential needs quickly.

主站蜘蛛池模板: 镇巴县| 日照市| 淮北市| 喀喇| 安乡县| 比如县| 杭锦后旗| 云阳县| 清水县| 浑源县| 潞城市| 满洲里市| 商丘市| 常宁市| 南江县| 个旧市| 湟中县| 张掖市| 蒙城县| 西乡县| 丹江口市| 两当县| 克拉玛依市| 合水县| 黔西县| 昆明市| 肥乡县| 阳西县| 安新县| 新龙县| 无锡市| 当雄县| 华安县| 珠海市| 南涧| 江达县| 页游| 平乐县| 大埔县| 中西区| 灌南县|