Skip to content

Conversation

@andrew4699
Copy link
Contributor

@andrew4699 andrew4699 commented Jan 31, 2025


@Override
public void doCommit(TableMetadata base, TableMetadata metadata) {
eventEmitter.fire(new BeforeTableCommitEvent(base, metadata));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One potential problem with the Jakarta events approach is that the firing is synchronous. This call can potentially take a long time to complete, depending on how many observers are subscribed, and how long they take to process the event.

There is a fireAsync method, I think it would be more appropriate.

But in general, maybe using a more robust event bus like the one provided by Vert.x would be a better idea.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vert.x event buses sound interesting, but I haven't used them before. Do you already have a sense of the tradeoffs or would you unequivocally suggest using them?

@andrew4699
Copy link
Contributor Author

Closed in favor of #922

@andrew4699 andrew4699 closed this Feb 26, 2025
@github-project-automation github-project-automation bot moved this from PRs In Progress to Done in Basic Kanban Board Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants