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

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 gap for 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 master data in a separate service altogether. Having the master data delivered through a service would have 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 for once, but then it is to be done only as many times as necessary.

Moreover, you could also support different sets of master data itself. It would be fairly easy to maintain product sets that can 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.

主站蜘蛛池模板: 黄石市| 潢川县| 安远县| 东丽区| 怀化市| 碌曲县| 屏东县| 容城县| 南丰县| 崇仁县| 宁阳县| 剑川县| 探索| 米林县| 清丰县| 马尔康县| 镇康县| 北碚区| 锦州市| 溧阳市| 潍坊市| 凤山县| 平南县| 宁陵县| 攀枝花市| 珲春市| 颍上县| 吉首市| 乐平市| 肥城市| 平武县| 鹤岗市| 工布江达县| 保靖县| 平昌县| 朝阳县| 丽水市| 哈巴河县| 铜梁县| 平顺县| 应城市|