KengoTODA / brownie

A distributed video converter
6 stars 0 forks source link

Eliminate 'hidden' dependencies between microservices via common module #16

Open KengoTODA opened 7 years ago

KengoTODA commented 7 years ago

Currently we have Event class in common, it may force event consumer microservice to upgrade its common module when event publisher upgrades format of event. This means that event consumer microservice lacks control of its dependency.

Instead, we can use common class like JsonObject as event class. Then we can eliminate these dependencies. It is also good to call multiple versions of REST API; one microservice may call multiple versions of one API, and if we use class, we need multiple event classes like FooEventV1 & FooEventV2.