Are transaction submissions supposed to be serial? #347
-
LedgerStateQuery messages includes However submitTx messages do not seem to utilize the same mechanism. Is this by design, assuming that clients will submit only 1 transaction at a time? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
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 |
Beta Was this translation helpful? Give feedback.
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…