Release Edge Events
-
03 Şubat 2012 Cuma 15:29
Hello,
I use edge events for my order stream, in my query I just need the active orders but my input adapter enqueues everything from the orders stream by design because I might use the inactive or cancelled orders in future.
So my input adapter is a point adapter and I use the ToSignal method to convert the events to edge events so they'd be always available for any join.
My problem is, if I cancel an order it still goes to streaminsight as a cancelled order and waits in the dictionary or collection or whatever in server anyway..
What I need is, if an order cancelled I want to take it out of the other active orders (edge events).
In my linq query I filter them with "where order.state == "Active" " but it still uses memory to keep start events for inactive orders.
Thanks in advance.

Tüm Yanıtlar
-
05 Şubat 2012 Pazar 20:07
Why are you using ToSignal? How are you matching the source stream with the clip stream? Typically, ToSignal would be used for something that occassionally reports a value and you always want to have the last known value available for any calculations.
As for what you are doing ... how does the order state of an active event get changed? Is the order state change enqueued as a separate event? Is there any way that you can use AlterEventDuration() to "expire" the cancelled orders?
DevBiker (aka J Sawyer)
My Blog
My Bike - Concours 14
If I answered your question, please mark as answer.
If my post was helpful, please mark as helpful. -
07 Şubat 2012 Salı 11:54
I think I solved it.
- Yanıt Olarak İşaretleyen Stylus.vb 07 Şubat 2012 Salı 11:54