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

Transaction Support #8

Open
tlnsave12345 opened this issue May 22, 2018 · 6 comments
Open

Transaction Support #8

tlnsave12345 opened this issue May 22, 2018 · 6 comments

Comments

@tlnsave12345
Copy link

Hi,
Thanks for the golang client. Please point me to the "Transaction" APIs. For example if I want to do 2 "put"s as part of one transaction.
Thanks

@amsokol
Copy link
Owner

amsokol commented May 24, 2018

Hi,
I have not implemented transactions yet.
I need to ask Apache Ignite community is it supported by thin client protocol.
I come back soon.
Thanks

@amsokol
Copy link
Owner

amsokol commented May 27, 2018

Hi,
Transactions are not supported by Apache Ignite thin client protocol yet.
Waiting for protocol update.

@mixaal
Copy link

mixaal commented Jul 24, 2018

Hi,

it seems that apache ignite now has the support for txs (at least in java):

https://apacheignite.readme.io/docs/transactions

try (Transaction tx = transactions.txStart()) {
    Integer hello = cache.get("Hello");
  
    if (hello == 1)
        cache.put("Hello", 11);
  
    cache.put("World", 22);
  
    tx.commit();
}

@amsokol
Copy link
Owner

amsokol commented Jul 27, 2018

Hi @mixaal

You are absolutely right if we are talking about Java or .NET client.
Another languages are using Binary Client Protocol:
https://apacheignite.readme.io/docs/binary-client-protocol
It does not support transaction commands yet (((

@dkurzaj
Copy link

dkurzaj commented Nov 8, 2019

Hello, it seems that it is now implemented (but apparently not documented yet) : apache/ignite#6734 (corresponding ticket in Jira: https://issues.apache.org/jira/browse/IGNITE-9410)

There is some documentation though in the corresponding IEP: https://cwiki.apache.org/confluence/display/IGNITE/IEP-34+Thin+client%3A+transactions+support

@LazarenkoA
Copy link

we use your client, transactions are very necessary

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

No branches or pull requests

5 participants