Skip to content

Flask app reading from read replica and displaying information #5490

Description

@neilmb

Feature/what we're after

Our flask app can talk to the read-replica of our datagov-harvester-db and get some information from that database (maybe just a count of something?) and put it onto a templated page.

Anticipated/hypothesized benefits

  • Proves out our infrastructure
  • Proves out our dataflow onto the page

Measurements/metrics

  • Data on the page changes as the harvester database changes

References/background

  • Probably need to use the Flask app's database session to make the connection and the .profile file needs to read the replica information to configure the credentials.
  • Consider starting a database/interface.py file to keep Flask routing separate from database access methods.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions