cpursley / walex

Postgres change events (CDC) in Elixir
MIT License
276 stars 14 forks source link

EventsModules: Only call modules & functions that exist #26

Closed cpursley closed 7 months ago

cpursley commented 8 months ago

Evn flag to disable calling assumed modules:

https://github.com/cpursley/walex/blob/master/lib/walex/events.ex#L28

cpursley commented 7 months ago

Maybe also consider DynamicSupervisor for Events in situation where modules aren't used (as sometimes just EventRelay and/or webhooks used without modules).

cpursley commented 7 months ago

Actually, just cache which modules exist at compile time and only call those.