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

unify external service connections in single location

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:

                Packages

                Version Package