I have some few services, like Catalog Service
, Customer Service
, Recommendations Service
, Order Taking Service
and so on ..., each service has its own Keyspace
in a Cassandra
database.
I have two questions:
1 - For a change in a service: should I first publish the change's event (or record) to Kafka
and then consume it from that same service in other to update its database, or should I update its database first and then publish the record to Kafka
?
2 - How to choose which change to publish to Kafka
, should I publish all updates to Kafka
, even those without interest for others services, like "attribute X updated to Y for product Z"
?