6 Comments

What we are trying to achieve is a write to DB and also publish to kafka. What if we first publish to kafka and make the DB as one of the consumer to it ? Is this viable ?

Expand full comment

That's the event driven architecture. It might not be good if you are interested in having immediate consistency as the database may not reflect the latest state immediately after the event is published. So this results in you having stale reads.

Expand full comment

Got it!

Expand full comment

Thanks Runay for the great question.

Munashe, you beat me on this one, thanks for great answer!

Expand full comment

Great article Raul.

We had implemented dual writes using CDC for one of the projects. It was a good outcome overall.

Also, thanks for the mention!

Expand full comment

Thanks for sharing, Saurabh!!!

Expand full comment