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

Master data

Handling master data is more about your personal choice and system-specific requirements. If you see that the master data is not going to change for ages and occupies an insignificant amount of records, you are better off with the configuration files or even code enumerations.

This requires someone to push out the configuration files once in a while when the changes do happen. However, this still leaves a gap for the future. As the rest of the system would depend on this one module, it will be responsible for these updates. If this module does not behave correctly, other parts of the system relying on it could also be impacted negatively.

Another option could be to wrap up the master data in a separate service altogether. Having the master data delivered through a service would provide the advantage of the services knowing the change instantly and understanding the capability to consume it as well.

The process of requesting this service might not be much different from the process of reading configuration files when required. It might be slower, but then it is to be done only as many times as necessary.

Moreover, you could also support different sets of master data. It would be fairly easy to maintain product sets that differ every year. With the microservice architecture style, it is always a good idea to be independent of any kind of outside reliance in future.

主站蜘蛛池模板: 涪陵区| 浠水县| 临颍县| 安岳县| 广南县| 社会| 龙陵县| 镇远县| 响水县| 漠河县| 卢氏县| 银川市| 冕宁县| 水城县| 库车县| 荣昌县| 苍山县| 洛川县| 滁州市| 永宁县| 铁力市| 桑日县| 绥芬河市| 阿荣旗| 台东市| 皋兰县| 张家口市| 舟山市| 沙雅县| 满洲里市| 额敏县| 莫力| 元阳县| 深圳市| 宣武区| 汕尾市| 如东县| 东乡族自治县| 江达县| 舞阳县| 西乡县|