frequenz-floss / frequenz-client-dispatch-python

Dispatch API client for Python
https://frequenz-floss.github.io/frequenz-client-dispatch-python/
MIT License
0 stars 3 forks source link

Implement streaming #84

Closed Marenz closed 2 months ago

llucax commented 2 months ago

BTW, nice to have dispatch events streaming!

Marenz commented 2 months ago

Out of curiosity, there is no way to filter streams like you can do with list, right?

So far the API provides no fields for that. It wouldn't be hard to add, but I doubt its worth the work tbh.

llucax commented 2 months ago

So far the API provides no fields for that. It wouldn't be hard to add, but I doubt its worth the work tbh.

Do you feel the same about list? For me it feels weird that they are asymmetrical, but maybe I'm missing some fundamental reason why it makes sense for one and not the other.

Marenz commented 2 months ago

Lists are used in very different contexts, e.g. for the UI to display the dispatches, not to react to them (usually at least) and do something with them.

The ones that use stream usually are interested in ALL changes (e.g. the dispatch actor on an edge) for their microgrid_id (which is the only and non-optional filter we have)