kukeiko / entity-space

MIT License
5 stars 1 forks source link

rework query dispatch and execution - part I #182

Closed kukeiko closed 1 year ago

kukeiko commented 2 years ago

What

Rework current mechanism so that an EntitySource can respond multiple times (Observable) instead of just once (Promise)

Why

To allow for a more complex EntitySource/EntitySourceGateway scenarios

kukeiko commented 1 year ago

I applied the idea I had years ago, where for a given query a stream would be established that sends packets with:

The ability to respond multiple times to a query is vital to support using entity-space on both client + server, as it gives the EntitySourceGateway - which takes a Query to dispatch it - much more power and flexibility.