Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement an ETL GenServer to orchestrate and automate archiving #2

Open
boonious opened this issue Dec 26, 2020 · 0 comments
Open

Comments

@boonious
Copy link
Owner

Lastfm Archive currently provides a discrete set of "one-off" manual archiving functions, archive/1 all scrobbles including the latest one or archive/2 scrobbles of specific date range. It also provides functions to transform raw data into TSV files which can be loaded (imported) into Solr for querying.

These functions can be put into a use context via a GenServer to facilitate lifecycle of an ongoing archiving/ETL process, i.e. continuous and automatic archiving of latest scrobbles. It would also underpin other background processes such as data consolidation and backing up into files of other formats. The server can also be used to provide periodic reporting of basic Lastfm scrobble stats (later iterations).

Tasks

  • update Lastfm Archive so that it makes use of Elixir/Erlang OTP capability: setting a supervision tree and a GenServer
  • implement GenServer callback and client function that will initiate archiving on startup and on demand
  • implement GenServer callback and client function for periodic archiving and syncing of latest scrobbles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant