apache / apache/incubator-seata

can support commit/rollback event notify?

Open
#1,740 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

大家好,我有个想法,seata能否在事务提交成功和回滚时,触发一个独特的通知,类似于spring的@TransactionalEventListener。 这个listener可以监听事务提交,回滚时所处理的数据,我考虑通过它,来使用redis缓存。
我现在单机是用的TransactionalEventListener 但是使用seata后这个就失效了,如果有解决方案,或者seata能提供个类似的方案就好了

Hello everyone, I have an idea, seata can trigger a unique notification when the transaction commits successfully and rolls back, similar to spring @TransactionalEventListener. This listener can listen for transaction commits, the data that is processed when the rollback is processed, and I consider using it to use the redis cache.
I am using the TransactionalEventListener for stand-alone now. But after using seata, this will be invalid. If there is a solution, or seata can provide a similar solution, just fine.

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests. Start by reviewing Seata’s transaction lifecycle alongside Spring’s @TransactionalEventListener behavior; clarify the event payload, commit and rollback timing, and integration boundary before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.