can that possible implement ACID transaction through binary protocol ?

69 views
Skip to first unread message

Payne Chu

unread,
Apr 22, 2014, 7:25:14 AM4/22/14
to orient-...@googlegroups.com
Hi all,

I'm trying to understand the binary protocol for creating golang driver.
But I have problem to implement ACID transaction.
I found out Oriento(NodeJs) and OrientDB-PHP both not yet implement the transaction function.
And the binary protocol only have REQUEST_TX_COMMIT command seems related to transaction
So is that possible implement ACID transaction through binary protocol ?
Is there any client already implemented ?
I hear before seems OrientDB's ACID transaction is client based.
Could you guys give me more detailed document or information to achieve this ?

Thanks
Payne

Artem Orobets

unread,
Apr 23, 2014, 2:20:17 AM4/23/14
to orient-...@googlegroups.com
Hi Payne,

Cool! Good luck with that and feel free to ask any questions if something is not clear.

It is definitely possible to implement transactions through binary protocol, you can take a Java driver as an example.

The transactions are client side, that means that all changes are collected by the client and then sent in one shot with REQUEST_TX_COMMIT command. This lead to more complex transaction management at client side, but provide more efficiency.

Take a look at this page, it contains definitive description of binary protocol.

Best regards,
Artem Orobets

Orient Technologies

the Company behind OrientDB



--

---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Artem Orobets

unread,
Apr 23, 2014, 2:20:59 AM4/23/14
to orient-...@googlegroups.com
Sorry, it seems some formatting are broken on that page. I'll try to fix that soon.

Best regards,
Artem Orobets

Orient Technologies

the Company behind OrientDB



Payne Chu

unread,
Apr 24, 2014, 8:24:41 AM4/24/14
to orient-...@googlegroups.com
Thanks Artem,

But the java source is quite big. And I'm just new in OreintDb. A bit difficult to know where is the right place to look at.
Could you tell me which packages is related to client driver?

Payne Chu

unread,
Apr 24, 2014, 8:26:44 AM4/24/14
to orient-...@googlegroups.com

Artem Orobets

unread,
Apr 24, 2014, 3:36:27 PM4/24/14
to orient-...@googlegroups.com
Hi Payne,

Start from the wiki page.

The java client is separated to orientdb-client module. Take a look at com.orientechnologies.orient.client.remote.OStorageRemote to understand how certain operations implemented.

Best regards,
Artem Orobets

Orient Technologies

the Company behind OrientDB



Reply all
Reply to author
Forward
0 new messages