-
Notifications
You must be signed in to change notification settings - Fork 1
feat: use ard feed api for livestreams, publishers and institutions… #748
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
feat: use ard feed api for livestreams, publishers and institutions… #748
Conversation
…nstead of a local file
950c387 to
b0dc958
Compare
b0dc958 to
f5733c0
Compare
frytg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall it looks great, but the current setup would slow down every processed event, since getPublisher gets called for every service of every element. We should either include the full download in the docker container (like in ard-vox), or only load it once upon container boot?
| const publisher = await core.getPublisher(service.publisherId) |
|
changed it now to retrieve it at the start and just read the file |
frytg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we shouldn't use console.log in production (use winston/ logger.log({ ... }) instead)
|
Docker container is ready! VERSION: |
…instead of a local file. resolves #247