gbv / coli-ana

API to analyze DDC numbers
https://coli-conc.gbv.de/coli-ana/app/
MIT License
2 stars 0 forks source link

Support backend service in addition to database #33

Closed nichtich closed 3 years ago

nichtich commented 3 years ago

Given an internal backend service to analyze DDC numbers, e.g.

echo 704.03917104436109041074 | netcat -N esx-89.gbv.de 8080

The coli-ana web application and API should support querying this backend as fallback if no database was configured or nothing was found in the database.

stefandesu commented 3 years ago

A few things are required for this:

Question: Can we use this to analyze more than one number at a time?

stefandesu commented 3 years ago

Now working in https://coli-conc.gbv.de/coli-ana/dev/, but what's missing is to make it work when no database is configured at all.

stefandesu commented 3 years ago

We have decided to reverse the logic: Analyse numbers via the backend service by default and only use the database as a fallback. This means that we will always have the most recent analysis for each number, but if the backend service is down, we can still use the database as a fallback.