Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relayer using a queue to scale up requests #50

Open
hashmesan opened this issue Sep 9, 2021 · 0 comments
Open

Relayer using a queue to scale up requests #50

hashmesan opened this issue Sep 9, 2021 · 0 comments

Comments

@hashmesan
Copy link
Owner

hashmesan commented Sep 9, 2021

Motivation

Current design will not handle high request gracefully. That is due to the issue with serializing requests through the blockchain, causing request that came later to time out. We should use a queue like bullmq to separate the request/queueing vs the submitting to blockchain, then respond back on a streaming channel (HTTP stream).

Design

Build a stress test simulator for devnet and verify behaviors.

user request -> [queue] -> process on account A (nonce_A)
                        \--> process on account B (nonce_B)
                         |---> process on account C (nonce_C)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant