Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How would you implement Flask event Listeners? #58

Open
adam-mrozik opened this issue Jan 20, 2023 · 1 comment
Open

[Question] How would you implement Flask event Listeners? #58

adam-mrozik opened this issue Jan 20, 2023 · 1 comment

Comments

@adam-mrozik
Copy link

adam-mrozik commented Jan 20, 2023

Hey,

I am looking at rebuilding some Flask services under the idea you are showcasing here.

Issue is that a lot of what we did was build on Flask event_listeners. What they do is essentially react to any changes to the data.

Do you have any proposal how to essentially be able to reuse those for SQLAlchemy prod use-case, but have them as mocks for tests?

@hjwp
Copy link
Contributor

hjwp commented Sep 25, 2023

I don't know anything about Flask signals or event listeners i'm afraid. from you saying "react to changes to the data", i'm guessing they're actually hooked into flask-sqlalchemy or some sort of database/storage plugin?

it sounds like they're essentially doing the same job as domain events, but using some infrastructure / tools that are coupled to the db?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@hjwp @adam-mrozik and others