Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Dong, Ji-gong
    @DongJigong
    hah
    alpha-ui 404
    Dong, Ji-gong
    @DongJigong
    Transaction seems fine
    Lei Zhang
    @coolbeevip
    alpha ui only works in state machine mode
    Dong, Ji-gong
    @DongJigong
    thks.
    <dependency>
    <groupId>org.apache.servicecomb.pack</groupId>
    <artifactId>omega-transport-resttemplate</artifactId>
    <version>0.5.0</version>
    </dependency>
        <!-- https://mvnrepository.com/artifact/org.apache.servicecomb.pack/omega-transport-feign -->
        <dependency>
            <groupId>org.apache.servicecomb.pack</groupId>
            <artifactId>omega-transport-feign</artifactId>
            <version>0.5.0</version>
        </dependency>
    This transport must be add to spring cloud
    Lei Zhang
    @coolbeevip
    If your project uses feign component then you must add this dependency
    Dong, Ji-gong
    @DongJigong
    Thanks.
    706725357
    @706725357
    There's an issue may cause losing messages while using redis channel as middleware in alpha . I think it could be replaced by redis stream , how do you feel about it ?
    Lei Zhang
    @coolbeevip
    @706725357 Is there any error logs for alpha
    706725357
    @706725357
    nope , what I mean is that redis pub/sub will abandon messages if no consumer is online rather than storing them like redis stream
    Dong, Ji-gong
    @DongJigong
    ... Redis does the same way. no matter what your client is
    Lei Zhang
    @coolbeevip
    @706725357 Oh, I recommend Kafka for production
    706725357
    @706725357
    I know Kafka is a better choice , but sometimes I should consider on our gourp's skill stack... So what if I implement it with redis stream and contribute to the project?
    Lei Zhang
    @coolbeevip
    @706725357 Great!I think you can send an email to dev@servicecomb.apache.org describe the problem and suggestions for improvement
    @706725357 We have multiple data channel implementations in the alpha-fsm module, you can see here https://github.com/apache/servicecomb-pack/tree/master/alpha/alpha-fsm/src/main/java/org/apache/servicecomb/pack/alpha/fsm/channel
    706725357
    @706725357
    @coolbeevip Got it .
    Lei Zhang
    @coolbeevip
    @706725357 I noticed that redis5.0 started to support stream, so I don't recommend modifying the original redis channel, it is better to add a new redisstream channel
    706725357
    @706725357
    @coolbeevip ok
    I will contact later after finishing it.
    Lei Zhang
    @coolbeevip
    👍
    Willem Jiang
    @WillemJiang
    @706725357 are you planning to implement a transport of redis stream to replace the Grpc?
    Could you explain more about that before you send a PR ?
    706725357
    @706725357
    The redis implement on event publishing and consuming is currently based on redis's PUB/SUB . I'd like to implement it with redis Stream which is more like kafka.
    Lei Zhang
    @coolbeevip
    omega-(grpc)->alpha-(pub)->redis-(sub)->alpha
    omega-(grpc)->alpha-(pub)->kafka-(sub)->alpha
    706725357
    @706725357
    alpha-(pub)->redis-(sub)->alpha I think only this part gonna be infulenced.
    Lei Zhang
    @coolbeevip
    These are the two message channels currently implemented. @706725357 wants to implement a Redis stream channel instead of Redis pub/sub. like this
    omega-(grpc)->alpha-(pub)->redis stream-(sub)->alpha
    706725357
    @706725357
    Is there anything I should notice between omega and alpha if I do this?
    Lei Zhang
    @coolbeevip
    Order of messages and a message can only be consumed by one alpha instance
    Willem Jiang
    @WillemJiang
    If we introduce redis between the omega and alpha, I think we will make the system more complicated.
    Lei Zhang
    @coolbeevip
    @706725357 Could you please tell me your email address
    706725357
    @706725357
    706725357@qq.com @coolbeevip
    Lei Zhang
    @coolbeevip
    @706725357 please check your email
    706725357
    @706725357
    replyed @coolbeevip
    Dmitry
    @dvelopp
    Hello guys,
    Do you know if I can somehow pass additional information to the compensation methods?
    That's for this question: https://stackoverflow.com/questions/59385136/handling-additional-data-in-apache-servicecomb-compensation-methods
    Lei Zhang
    @coolbeevip
    @dvelopp Hi, I just added a comment to your question of stackoverflow
    Dmitry
    @dvelopp
    @coolbeevip , thank you! It helps a lot!
    Lei Zhang
    @coolbeevip
    @WillemJiang I just updated the PR apache/servicecomb-pack#616
    Lei Zhang
    @coolbeevip
    @WillemJiang Please take a look at apache/servicecomb-pack#627
    Willem Jiang
    @WillemJiang
    reverted.
    Lei Zhang
    @coolbeevip
    Thx
    Dmitry
    @dvelopp

    Hey guys, what happens if in the middle of the transaction, my omegas go down for a certain amount of time?
    For example,
    I have a saga:

    book a hotel
    book a car
    book a flight
    And during booking a car omega got shut down.

    1. Will it compensate hotel transaction when omega goes up?
    2. Will it restart the whole saga and go through it again?
    Amos Feng
    @zhfeng
    @dvelopp I think it depends on the saga events which coordinator (alpha server) receives from the car omega.
    Amos Feng
    @zhfeng
    1. the car omega crash down and can not send the TxStartEvent. The whole transaction will be cancelled and the hotel will be compensated.
    1. the car omega down after the business logic and can not send the TxEndEvent. The whole transaction will be time out and be compensated.
    Dmitry
    @dvelopp
    Hi Amos,
    Thank you for clarifications.