Skip to content

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

Description

@adam-mrozik

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?

Activity

  1. hjwp commented on Sep 25, 2023

    @hjwp
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions