Skip to content

Are transaction submissions supposed to be serial? #347

Closed Answered by KtorZ
mkazlauskas asked this question in Q & A
Discussion options

You must be logged in to vote

Indeed; the submitTx / evaluateTx both rely on a different mechanism stemming from the fact that transactions are inherently sequential in Ogmios. They are submitted in the same order as they are received by the server and the response comes in the same order as well. This approach works so long as there's only one thread submitting transactions (which is the case in V8 and other JS engine). This doesn't mean however that you can only submit transactions one by one.

The state queries work in principle in a similar way, but because each query go through the same sockets, it becomes a bit harder to know what handler should handle what response. So the requestId is used mainly as a routing m…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@mkazlauskas
Comment options

@KtorZ
Comment options

@mkazlauskas
Comment options

@KtorZ
Comment options

@mkazlauskas
Comment options

Answer selected by mkazlauskas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q & A
Labels
None yet
2 participants