Uploaded image for project: 'YesCart'
  1. YesCart
  2. YC-236 Clustering
  3. YC-316

Flush price and inventory caches in YES when out of stock is encountered.

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: cluster, sf server
    • Labels:
      None

      Description

      ATM if we have cluster of YES node we may have outdated data for prices and inventory.

      Therefore the approach is to keep those caches at minimal time frame to keep information fresh but at the same time if we do get out of synch on nodes we can forcefully flush inventory caches when we encounter out of stock exceptions during checkout.

      Alternative would be to have each YES node broadcast WS onCacheableEntity event which may provide better synchronisation but at the cost of WS traffic, which seems unreasonable at this point.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                denis Denis Pavlov
                Reporter:
                denis Denis Pavlov
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: