In apple#17 we added support for transforming instance types for a
service discovery implementation. This is great, but another common
requirement might be to exclude some instances altogether based on some
criterion.
This corresponds directly to another combinator, filter. Let's add
filterInstance to allow users to implement this easily.
Modifications:
Implemented FilterInstanceServiceDiscovery.
Added tests
Results:
Users can perform straightforward filtering of instances.
Motivation:
In apple#17 we added support for transforming instance types for a service discovery implementation. This is great, but another common requirement might be to exclude some instances altogether based on some criterion.
This corresponds directly to another combinator,
filter
. Let's addfilterInstance
to allow users to implement this easily.Modifications:
Results:
Users can perform straightforward filtering of instances.