Skip to content
Snippets Groups Projects

MFE-6 Use Redis to cache SAP responses

Merged Trond Aasan requested to merge MFE-6-caching into master
+ 14
2
@@ -48,8 +48,20 @@ npm start
Lag konfigurasjon i `config.yaml`
#### Redis
[Redis](https://redis.io/) brukes til å cache data slik at vi ikke bombarderer trege API-er.
Kan for eksempel kjøres med docker
```shell
docker run -e REDIS_PASSWORD=see_config -p 6379:6379 harbor.uio.no/library/registry.redhat.io-rhscl-redis-5-rhel7
```
#### FastAPI
```shell
OAUTHLIB_INSECURE_TRANSPORT=1 poetry run python mfe_ms/backend/api.py
OAUTHLIB_RELAX_TOKEN_SCOPE=1 OAUTHLIB_INSECURE_TRANSPORT=1 poetry run python mfe_ms/backend/api.py
```
Gå til http://localhost:4000
@@ -57,4 +69,4 @@ Gå til http://localhost:4000
### GraphiQL
http://localhost:4000/api/graphql/
Hvis `GraphQLConfig.enable_gui` er satt til `True` får man opp et GraphQL GUI på http://localhost:4000/api/graphql/
Loading