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

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.

主站蜘蛛池模板: 彭州市| 西宁市| 同江市| 阳信县| 桑植县| 东乌| 周至县| 社会| 集安市| 成安县| 晋城| 云和县| 广东省| 微博| 澄江县| 象山县| 新巴尔虎左旗| 松阳县| 宣恩县| 新郑市| 罗平县| 台南市| 德安县| 平顶山市| 特克斯县| 顺平县| 普兰店市| 铜梁县| 宽甸| 南充市| 长宁区| 琼结县| 台山市| 平湖市| 望奎县| 花莲市| 徐闻县| 屏东县| 洞口县| 沁阳市| 凤翔县|