This demo application will help you in implementing CDC changes and enable you to move towards Event driven architecture.
Refer this to understand it in details - https://ritresh-girdhar.medium.com/change-data-capture-using-debezium-ec48631d643a
Happy Learning !