When running Micro with no configuration (docker run -p 9090:9090 snowplow/snowplow-micro:1.3.4) the responses are significantly slower than when run with the --iglu flag and the example iglu.json.
We can pass a ResolverCache here instead of None, probably with a cache of 500 like the default iglu.json, which should improve performance when running Micro with zero config.
When running Micro with no configuration (
docker run -p 9090:9090 snowplow/snowplow-micro:1.3.4
) the responses are significantly slower than when run with the--iglu
flag and the exampleiglu.json
.This is due to
iglu.json
having a default cacheSize of 500, but the built in default Iglu Resolve hasNone
: https://github.com/snowplow-incubator/snowplow-micro/blob/master/src/main/scala/com.snowplowanalytics.snowplow.micro/ConfigHelper.scala#L48We can pass a
ResolverCache
here instead ofNone
, probably with a cache of 500 like the defaultiglu.json
, which should improve performance when running Micro with zero config.