snowplow-incubator / snowplow-micro

Standalone application to automate testing of trackers
Other
47 stars 15 forks source link

Default Iglu Client Resolver has no cache #122

Closed paulboocock closed 1 year ago

paulboocock commented 1 year ago

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.

This is due to iglu.json having a default cacheSize of 500, but the built in default Iglu Resolve has None: https://github.com/snowplow-incubator/snowplow-micro/blob/master/src/main/scala/com.snowplowanalytics.snowplow.micro/ConfigHelper.scala#L48

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.

istreeter commented 1 year ago

closed by #123

Enrich 3.6.1 made quite big changes to how it uses Iglu Client. In upgrading Micro to use 3.6.1 it became natural to add a cache at the same time.