Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.78 KB

README.md

File metadata and controls

43 lines (35 loc) · 1.78 KB

nva-publication-channels-java

A client to wrap HKDir DBH's publication channel databases.

SWAGGER UI

Alt text

Cached data

Sometimes, you may wish to resolve many resources (semi-) simultaneously, which may degrade upstream response times. In these cases, follow these steps:

  1. Upload the data set (csv format, see model .../channelregistrycache/db/model/ChannelRegistryCacheDao.java) to the s3 bucket channel-register-cache-{accountId}
  2. If channel registry data already exists in dynamoDB, empty the table channel-register-cache-{stackName}
  3. Trigger LoadCacheButtonHandler lambda function
  4. Configure the ApplicationConfigurationProfile:
    • Navigate to AWS Systems ManagerAppConfig.
    • Choose ApplicationConfigApplicationConfigurationProfile.
    • If there is no existing version with the value you want to deploy → navigate to Systems Manager, Parameter Store and update the SSM parameter named ApplicationConfigurationParameter. Update publicationChannelCacheEnabled value to true or false.
    • Return to ApplicationConfigApplicationConfigurationProfile and choose version of Config you want to deploy.
    • During deployment, select the environment you want to use. Currently, there is a single environment named Live. Choose the deployment strategy AllAtOnce.
    • Press Start deployment.
    • Please note that deployment may take some time.
{
  "publicationChannelCacheEnabled": true
}

!Important: Caching is only supported for fetching publication channels by id and year, not search.