Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PROTON-1442: [Cpp] Support for local transactions #437

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

DreamPearl
Copy link
Contributor

@DreamPearl DreamPearl commented Nov 20, 2024

PROTON-1442

AMQP Transaction Sequence:

  1. Declare transaction:
  • Client establishes link to Broker (Transaction resource) to target with transaction coordinator type (usual types are sender/receiver) (ATTACH frame)

  • Client (Transaction Controller) sends a special message to that link to create transaction (TRANSFER frame)

  • Broker returns a disposition with the transaction id (DISPOSITION frame)

  1. Send Message in the transaction:
  • Client sends a message to the broker with transaction id in the state field.
  1. Commit/Abort

astitcher and others added 5 commits November 20, 2024 14:05
* Added an extra handler to the python binding so that we can handle
  transactioned dispositions
* Modified the Python example broker so that it understands transaction
  requests, prints some useful output about what is happening, but
  doesn't honor the transaction semantics. It will queue up transactioned
  messages immediately and also doesn't correctly handle outgoing
  message releases (but it doesn't for non-transactioned messages either
* Make it compile
* Make it fit the existing software structure better
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