You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "Lei Zhang (Jira)" <ji...@apache.org> on 2022/03/22 10:40:00 UTC

[jira] [Updated] (SCB-2425) Refactoring the Alpha module using Spring SPI

     [ https://issues.apache.org/jira/browse/SCB-2425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lei Zhang updated SCB-2425:
---------------------------
    Description: 
The purpose of refactoring is to decouple distributed transaction implementation

*Alpha module changes*
 * alpha-spec-saga-db
 * alpha-spec-saga-akka
 * alpha-spec-tcc-db

*Alpha Using Spring SPI*
 * Load AlphaSpecXXXAutoConfiguration through spring.factories under each module
 * Configure the SPI module by parameters, likes alpha.spec.names=saga-db or alpha.spec.names=saga-akka,tcc-db

*Alpha Configuration parameters*
{code:java}
alpha:
  spec:
    names: saga-db
    saga:
      akka:
        channel:
          name: memory
          memory:
            max-length: -1
          kafka:
            topic: servicecomb-pack-actor-event
            bootstrap-servers: 127.0.0.1:9092
            consumer:
              group-id: servicecomb-pack
              auto.offset.reset: earliest
            producer:
              batch-size: 16384
              retries: 0
              buffer.memory: 33554432
        repository:
          name: elasticsearch
          elasticsearch:
            uris: http://localhost:9200
            batch-size: 100
            refresh-time: 5000
      db:
        datasource:
          username: sa
          password:
          url: jdbc:hsqldb:mem:saga
          initialization-mode: always
        cluster:
          enabled: true
          type: jdbc
          expire: 5000
    tcc:
      db:
        memory-mode: true
        datasource:
          username: sa
          password:
          url: jdbc:hsqldb:mem:saga
          initialization-mode: always
{code}

*Omega Configuration parameters*

omega.spec.names=tcc or omega.spec.names=saga,tcc

  was:
The purpose of refactoring is to decouple distributed transaction implementation

*Alpha module changes*

  * alpha-spec-saga-db
  * alpha-spec-saga-akka
  * alpha-spec-tcc-db

*Using Spring SPI*

  * Load AlphaSpecXXXAutoConfiguration through spring.factories under each module
  * Configure the SPI module by parameters, likes alpha.spec.names=saga-db or alpha.spec.names=saga-akka,tcc-db

*Configuration parameters*

{code:java}
alpha:
  spec:
    names: saga-db
    saga:
      akka:
        channel:
          name: memory
          memory:
            max-length: -1
          kafka:
            topic: servicecomb-pack-actor-event
            bootstrap-servers: 127.0.0.1:9092
            consumer:
              group-id: servicecomb-pack
              auto.offset.reset: earliest
            producer:
              batch-size: 16384
              retries: 0
              buffer.memory: 33554432
        repository:
          name: elasticsearch
          elasticsearch:
            uris: http://localhost:9200
            batch-size: 100
            refresh-time: 5000
      db:
        datasource:
          username: sa
          password:
          url: jdbc:hsqldb:mem:saga
          initialization-mode: always
        cluster:
          enabled: true
          type: jdbc
          expire: 5000
    tcc:
      db:
        memory-mode: true
        datasource:
          username: sa
          password:
          url: jdbc:hsqldb:mem:saga
          initialization-mode: always
{code}



> Refactoring the Alpha module using Spring SPI
> ---------------------------------------------
>
>                 Key: SCB-2425
>                 URL: https://issues.apache.org/jira/browse/SCB-2425
>             Project: Apache ServiceComb
>          Issue Type: Task
>          Components: Saga
>    Affects Versions: pack-0.7.0
>            Reporter: Lei Zhang
>            Assignee: Lei Zhang
>            Priority: Major
>
> The purpose of refactoring is to decouple distributed transaction implementation
> *Alpha module changes*
>  * alpha-spec-saga-db
>  * alpha-spec-saga-akka
>  * alpha-spec-tcc-db
> *Alpha Using Spring SPI*
>  * Load AlphaSpecXXXAutoConfiguration through spring.factories under each module
>  * Configure the SPI module by parameters, likes alpha.spec.names=saga-db or alpha.spec.names=saga-akka,tcc-db
> *Alpha Configuration parameters*
> {code:java}
> alpha:
>   spec:
>     names: saga-db
>     saga:
>       akka:
>         channel:
>           name: memory
>           memory:
>             max-length: -1
>           kafka:
>             topic: servicecomb-pack-actor-event
>             bootstrap-servers: 127.0.0.1:9092
>             consumer:
>               group-id: servicecomb-pack
>               auto.offset.reset: earliest
>             producer:
>               batch-size: 16384
>               retries: 0
>               buffer.memory: 33554432
>         repository:
>           name: elasticsearch
>           elasticsearch:
>             uris: http://localhost:9200
>             batch-size: 100
>             refresh-time: 5000
>       db:
>         datasource:
>           username: sa
>           password:
>           url: jdbc:hsqldb:mem:saga
>           initialization-mode: always
>         cluster:
>           enabled: true
>           type: jdbc
>           expire: 5000
>     tcc:
>       db:
>         memory-mode: true
>         datasource:
>           username: sa
>           password:
>           url: jdbc:hsqldb:mem:saga
>           initialization-mode: always
> {code}
> *Omega Configuration parameters*
> omega.spec.names=tcc or omega.spec.names=saga,tcc



--
This message was sent by Atlassian Jira
(v8.20.1#820001)