We follow this exact same architectural approach at hasura.io as well. We are an opensource realtime GraphQL engine on Postgres and just last week we announced event-triggers on Postgres that allows you to call webhooks/serverless functions anytime there is a change in your database. (I work at Hasura)