How to send event to phoenix web app from core app without circular reference?

I made an umbrella project that has core app and phoenix web app.

I want to broadcast event to channel of phoenix web app when a record is created (ex. message).

core app can’t send event to phoenix web app because it doesn’t know phoenix web app.

How can I solve this problem?

One of my idea is using something like Redis.