-
Install netlify cli
-
yarn
-
Setup Redis
-
Set Redis envar for connection string
-
netlify init
-
netlify build
-
netlify dev
-
netlify dev --edgeHandlers
-
yarn serve
EXPIRE_IN_SECONDS defaults to 30 seconds
Set enable-response-cache
request header to false
> POST /.netlify/functions/graphql HTTP/1.1
> Host: localhost:8888
> User-Agent: insomnia/2021.5.3
> Content-Type: application/json
> Accept: */*
> Content-Length: 27
| {"query":"query { quick }"}
- hi - "there"
- fast - no delay, returns current time
- quick - 3.5 seconds delay, returns current time
- slow - 7 seconds delay, returns current timex
Currently, ttl for all cached is 10secs.
TODO invalidate key and or on mutation
brew install k6
BENCHMARK_GRAPHQL_ENDPOINT