Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-706

refactor loadbalance filters logic to support invocation based filter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • java-chassis-1.0.0
    • Java-Chassis
    • None

    Description

      Why we do this?

      1. When implement invocation based filter, e.g. darklaunch deployment, we need to filter servers based on invocation parameters. But now, we create a Loadbalaner instance for each service, and Robin filter interface can not pass Invocation to it. Before refactor, we doing this by ThreadLocal and cache Invocation, and use in filter implementation. This is error prone and users can't handle this complixity
      2. We have other improvements, e.g. SCB-700, we can do server status check, and add a filter a choose from active servers. We need to consider filter orders and other feature, current implementation not satisfy this.
      3. We want to make loadbalance code handy by remove some compatible fixes. 

      Attachments

        Activity

          People

            liubao68 liubao
            liubao68 liubao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: