DevLabs > DevLabs Forums > Axum Incubation Project > Unbounded FIFO queue with replacement.
Ask a questionAsk a question
 

AnswerUnbounded FIFO queue with replacement.

  • Friday, July 24, 2009 2:10 AMJim Michels Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    A great many of the projects that I tend to work on in my industry involve producers (unbounded) queuing items to consumers with 2 additional constraints.

    1) Newer items that are essentially updates of old items need to replace unconsumed old items in the queue.
    2) The replacement needs to occur such that the new item assumes the replaced item's position in the queue.

    To be clear, this does normally require a "key" to match the new item with the older instance of the item in the queue.

    Can this behavior be modeled with Axum's channels?

Answers

  • Monday, July 27, 2009 8:04 PMJosh PhillipsMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Jim,

    Thanks for the great question -- and a great scenario to boot!  Out of the box, no, there won't be any support for these constraints.  This could be implemented easily as a custom interaction point though -- and the primary motivation for providing the IInteractionPoint interface. 

    Just out of curiosity's sake, what's your industry?

    Josh

All Replies

  • Monday, July 27, 2009 8:04 PMJosh PhillipsMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Jim,

    Thanks for the great question -- and a great scenario to boot!  Out of the box, no, there won't be any support for these constraints.  This could be implemented easily as a custom interaction point though -- and the primary motivation for providing the IInteractionPoint interface. 

    Just out of curiosity's sake, what's your industry?

    Josh
  • Monday, July 27, 2009 10:58 PMJim Michels Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks for your response. I will read up on your suggestion.

    To answer your question, I am involved in finance. Specifically, high-frequency algorithmic trading.

    Jim