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).
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).