Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: for the plan.

Jump to: navigation, search

SMILA/Specifications/Processing Message Resequencer/Connectivity Consolidation Buffer

Connectivity Consolidation/Resequencer Buffer (CCB, CRB)

There was an idea to handle this case in the connectivity directly with the help of a buffer:

  1. each incoming PR is buffered for a period of time X.
    X is at minimum as long as the longest processing path takes for any given record. In the beginning this value is certainly chosen manually but with evaluating Performance Counters it should be possible to get X automatically or adjust it.
    1. No. IMO X should be a couple of minutes. Let's say 5 min or so.
  2. during the time of PR in the buffer, additional PRs for the same resource are consolidated retaining only the latest to reduce load
  • lag
    all PRs will have the lag of ~2 times X before the index is updated. for mass crawling this might be acceptable but an application using agents usually tries to minimize the period between the resource change and the update of the index.
    • This is not a problem at all! Nobody wants so find something that is work in progress (constantly changes). For example: Even if we instantly update our index the user will still have some delay between inspecting search results and viewing some specific document. If the document constantly changes, than by viewing it the user may still see some diferent version than the one we indexed.
  • no guarantee that X is sufficient
    delaying processing will reduce the chances of mishaps but there is no guarantee that this is really so.
    the simpliest case of voiding the mechanism even in a simples scenarios, is when the system is for what ever reason under a higher load than usual.
    even more so when the processing chain is more complex such as in a cluster setup to spread processing load over several nodes. in such a scenario we will also need to take into account that some nodes may be down temporarily while retaining the records that were assigned to them.
  • connectivity may have to store a very large amount of items before it can rout them, and these need have to presisted on shutdown etc as well.
    • The Buffer component (which would be a part of Connectivity module) would have its own queue. In this queue only the record ID and the timestamp should be stored. Document's metadata and the content would be then fetched from an agent when buffer decides to send some operation on the router.
  • simple to implement and has no effect on the API or other logic
  • This solution scales because the execution order of operations on _one_ particular record _does not_ matter.

Back to the top