Skip to content

Tx client submission paralellism #178

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

You must be logged in to vote

(I'll move that issue as a Github Discussion if you don't mind)

Regarding the transaction submission, the TypeScript clients gives you a promise-like interface via the TxSubmissionClient and the submitTx method. In principle, you can send multiple requests in "parallel" (although there's no real parallelism in with browser or node.js runtimes) and wait on each promise independently.

Behind the scene, a single TxSubmissionClient will use a single InteractionContext and therefore, a single connection. Ogmios is single-threaded in regards to each connection, which means that while a submitTx is being processed, any concurrent requests is queued and only processed afterwards.

However, an Ogmi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@leobel
Comment options

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

This discussion was converted from issue #177 on February 14, 2022 11:50.