Skip to content

Distributed operations: forwarded URL parameters #1848

@kzangeli

Description

@kzangeli

'q' cannot be part of a forwarded request (only applicable for Query Entities).
Sama same with 'attrs' and 'pick' and a few more (NEC has the complete list).

Imagine for example that entity 'urn:entities:E1' is split over 3 different brokers (nothing in local),
and the attribute 'speed' is only present in one of the 3 external brokers.
A query comes in and the broker finds 3 matching registrations.
If 'q=speed>10' is added to the forwarded queries, then it's not a match for two of the brokers.
Now, if the entire entity was asked for, then all those attributes in the other two brokers are ignored.

So, the forwarded request cannot include the 'q' parameter.
That kind of entity selection must be done afterwards, once the complete entity has been compiled.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions