6 Comments
Nov 6Liked by Raul Junco

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
Nov 8Liked by Raul Junco

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
Nov 9Liked by Raul Junco

Got it!

Expand full comment
author

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
author

Thanks for sharing, Saurabh!!!

Expand full comment