How to do request queries by reference?
dmitrizagidulin opened this issue · comments
Placeholder for the discussion -
When doing a QueryByExample
request, how would you pass in the example
by reference? (As opposed to by value, as is currently in the spec.)
@dmitrizagidulin -- Per our discussion, we should briefly describe two approaches to this problem:
- Shared directories for queries where query handlers have to know about the directories and do dereferencing
- Shared directories for queries where query handlers don't have to know about the directories and query submitters just do the dereferencing
Both should achieve the use case of "stored" and "reusable" queries. I'm in favor of the second approach because it's a better separation of concerns, reducing overall complexity to implement a query handler and reducing attack surface.