ignite-go-client
ignite-go-client copied to clipboard
Transaction Support
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
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
Hi, Transactions are not supported by Apache Ignite thin client protocol yet. Waiting for protocol update.
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();
}
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 (((
Hello, it seems that it is now implemented (but apparently not documented yet) : https://github.com/apache/ignite/pull/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
we use your client, transactions are very necessary