Hi,
I am looking for a solution to implement a subscription for an order book which is basically a List of Orders where an Order has multiple fields that can be updated and among them one field is a List<Execution> where an Execution has also multiple fields (like amount, executionPrice, etc).
From my understanding, I would need:
- a subscription with COMMAND mode for orders item (so that I can be notified when a new order is added/deleted or any field changes). This can be also handled with a 2 level push approach. But is it possible to use the MERGE mode for updates even if there is a list of orders? (assuming that a new order cannot be added and an existing one cannot be deleted)
- for executions field I would need a separate subscription either with DISTINCT mode (if execution fields are immutable and one order execution cannot be deleted) or COMMAND mode (in case executions are mutable)
Is it possible to achieve the behaviour above without adding any logic that subscribes dynamically for executions once a new orders is received on the consumer side?
Also, any links to any documentation containing details about the subscription modes that are not mentioned in the General Concepts document is much appreciated.
Thank you.