Files
web/apps/redis-api
Joakim Jäderberg c3381e8100 Merged in feat/redis-fix (pull request #3209)
Feat/redis fix

* feat(redis): delete multiple keys in one partition scan

* fix(BOOK-603): make it possible to do multiple deletes in redis at once using one partition scan

* filter out invalid keys

* fix: if no valid keys are present return early

* .

* fix: do redis deletes after scanning through all keys

* fix: do redis deletes after scanning through all keys


Approved-by: Linus Flood
2025-11-25 10:19:19 +00:00
..

Redis API

A thin wrapper around redis so that we can communicate to it via HTTP instead of TCP

Deployment

Make sure you have access to Azure and have PIMed yourself to

  • Web-App-Frontend prod where the ACR is located
  • Web Components Prod or Web Components Test depending on where you want to deploy

Login with az login and select Web-App-Frontend prod

Build container image

Standing in /apps/redis-api run

az acr build . --image redis-api:latest -r acrscandicfrontend

Deploy container image

Subscription Environment SubscriptionId
Web Components Prod prod 799cbffe-5209-41fd-adf9-4ffa3d1feead
Web Components Test test 3b657fc5-85b0-4a43-aba2-e77618ef98c4
# Replace with appropriate values
az deployment sub create \
            --location westeurope \
            --template-file ci/bicep/main.bicep \
            --subscription {{SUBSCRIPTION_ID}} \
            --parameters environment={{ENVIRONMENT}} \
             containerImageTag=latest \
             primaryApiKey={{PRIMARY API KEY}} \ # API keys are used for communicating with the api
             secondaryApiKey={{SECONDARY API KEY}} \
             sentryDSN={{SENTRY DSN}} \
             sentryEnabled={{true/false}} \
             sentryTraceSampleRate=0.01