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

client: parallel push RMs #98

Merged
merged 7 commits into from Feb 9, 2023

Conversation

miki-totefu
Copy link
Collaborator

this is the client side of #97: payment and pushes to the server are done in parallel for multiple RMs without waiting for server ack.

this can't be used in production until the production server is updated to use it.

miki added 7 commits January 19, 2023 14:01
This modifies the client DB implementation to keep track of multiple
unacked RMs per user, instead of a single one.

This will be necessary in the future to handle failures when sending
multiple concurrent RMs.
This function returns the status about a previous payment attempt.
This reads and exposes the recently introduced props that control
parallel RM push from the server.
This adds functions to the clientdb to allow the client to store the
payment status for unacked RMs. This will be necessary to handle restart
cases during parallel RM pushing.
The ID will have to be sent when sending multiple concurrent RMs.

For the free client, the ID is derived from the passed invoice to help
with tests.
This DB will be necessary for the RMQ to track unacked RMs that have
been paid for across client restarts.
This adds support in the RMQ for parallel sending of RMs to the server.

The status of a paid RM is stored in the DB, and the corresponding
invoice ID  is sent to the server together with the RM data.

Tests are added to verify the new behavior.
@miki-totefu miki-totefu force-pushed the clientparallelsend branch 2 times, most recently from ff3b3c9 to dfd1cfc Compare February 2, 2023 14:28
@miki-totefu miki-totefu marked this pull request as ready for review February 2, 2023 14:28
@miki-totefu miki-totefu merged commit 331a23a into companyzero:master Feb 9, 2023
@miki-totefu miki-totefu deleted the clientparallelsend branch February 27, 2023 18:14
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

Successfully merging this pull request may close these issues.

None yet

2 participants