I have a Salesforce ISV app that shares some data with its Heroku-based backend.
To notify the backend about data changes in Salesforce we use
Change Data Capture. For synching back changes from Heroku to Salesforce we use
Custom Platform Events.
So far so good. The problem is the CDC-path is effortless and very flexible. If we change the data model the channel magically adapts. But for the way back we need to change the fields of the custom event and adjust code to synchronize it.
My question is, is there a better way to solve this? Like Change Data Capture in both directions.