Open-EO / openeo-aggregator

openEO driver that combines multiple other drivers
https://open-eo.github.io/openeo-aggregator/
Apache License 2.0
1 stars 1 forks source link

Issue84 cache service types and select correct backend #86

Closed JohanKJSchreurs closed 1 year ago

JohanKJSchreurs commented 1 year ago

Cache service types and select correct backend based on service type.

This PR implements issue #84 And these changes also helps prepare the way for #85.

Changes

1) Added caching to AggregatorSecondaryServices.service_types, AKA: GET /services 2) create_service: now determines which upstream backend to based on service type. (And only on service type, for now) This works on the assumption that there is only one upstream backend per service type.

Internally, the service type info that is being cached actually contains info for both points 1) and 2).