Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-879

unify external service connections in single location

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None

      Related: LB-766

      There are a number of different ways that we connect to external services on app startup/serving a request (postgres, timescale, redis, rabbitmq).

      Most of these just use a global variable to store a connection handle, but these connections are made in different ways for each service. 

      We should use flask extensions or similar to handle connections for all external services. Hopefully this should give us a clearer idea of which views/modules need to use specific external services, and improve testability.

            Unassigned Unassigned
            alastairp Alastair Porter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Version Package