Merged in feature/redis (pull request #1478)
Distributed cache * cache deleteKey now uses an options object instead of a lonely argument variable fuzzy * merge * remove debug logs and cleanup * cleanup * add fault handling * add fault handling * add pid when logging redis client creation * add identifier when logging redis client creation * cleanup * feat: add redis-api as it's own app * feature: use http wrapper for redis * feat: add the possibility to fallback to unstable_cache * Add error handling if redis cache is unresponsive * add logging for unstable_cache * merge * don't cache errors * fix: metadatabase on branchdeploys * Handle when /en/destinations throws add ErrorBoundary * Add sentry-logging when ErrorBoundary catches exception * Fix error handling for distributed cache * cleanup code * Added Application Insights back * Update generateApiKeys script and remove duplicate * Merge branch 'feature/redis' of bitbucket.org:scandic-swap/web into feature/redis * merge Approved-by: Linus Flood
This commit is contained in:
committed by
Linus Flood
parent
a8304e543e
commit
fa63b20ed0
39
apps/redis-api/README.md
Normal file
39
apps/redis-api/README.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# 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
|
||||
|
||||
```bash
|
||||
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 |
|
||||
|
||||
```bash
|
||||
# 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}}
|
||||
```
|
||||
Reference in New Issue
Block a user