fabric

Encapsulation Pattern

Microbus employs the principle of information hiding and opts to encapsulate the underlying technologies behind its own simplified interfaces. There are various reasons for this pattern:

One example of this pattern is with the configuration of microservices. Rather than leave things up to each individual developer how to fetch config values, the Connector defines an interface that encapsulates the underlying implementation. Today, the framework looks for config values in a config.yaml file. In the future, it might be extended to fetch configs from a remote location.