Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Update put stream to handle bi directional stream#25

Merged
fimac merged 6 commits intomainfrom
put-stream-bi-direction
Oct 18, 2022
Merged

Update put stream to handle bi directional stream#25
fimac merged 6 commits intomainfrom
put-stream-bi-direction

Conversation

@fimac
Copy link
Copy Markdown
Contributor

@fimac fimac commented Sep 29, 2022

Bumps the grpc client to use the latest version.

Updates the put_stream method to use the bi_directional endpoint. This returns an enumerable when called, which is then looped through to log each response, which has the current count of the total number inserted.

Testing done:

Have tested using this branch of the benchmark repo. Pointing the gemfile to a local version of active stash and this branch of the ruby client.

Results below are via running this on an EC2 instance.

Screen Shot 2022-10-10 at 3 19 59 pm

Screen Shot 2022-10-10 at 10 01 48 pm

I have also tested via this branch which has been updated with an E2E test for streaming upsert and error handling on a unique constraint.

Running the below command, with this ruby client branch checked out.

CS_SERVICE_PORT=50001 RUBYLIB=/users/fionamccawley/cipherstash/ruby-client/lib ./run.sh dev-local 0

Screen Shot 2022-10-11 at 11 19 34 am

The active stash smoke test is failing due to an mismatch in ruby client versions. Looks like we need to do a release of ActiveStash so the latest update including the bump in versions is avaialble.

@fimac fimac force-pushed the put-stream-bi-direction branch 3 times, most recently from e249d46 to cf9436f Compare September 29, 2022 22:59
@fimac fimac force-pushed the put-stream-bi-direction branch 2 times, most recently from 283c825 to 52214e3 Compare October 10, 2022 23:41
@fimac fimac force-pushed the put-stream-bi-direction branch from 52214e3 to 7497c7c Compare October 10, 2022 23:44
@fimac fimac marked this pull request as ready for review October 11, 2022 00:26
@fimac fimac requested a review from a team as a code owner October 11, 2022 00:26
Comment thread lib/cipherstash/client/rpc.rb Outdated
Comment thread lib/cipherstash/client/rpc.rb Outdated
Comment thread lib/cipherstash/client/rpc.rb Outdated
Comment thread lib/cipherstash/client/rpc.rb
fimac and others added 4 commits October 18, 2022 10:52
Co-authored-by: Drew Thomas <7672425+CDThomas@users.noreply.github.com>
Co-authored-by: Drew Thomas <7672425+CDThomas@users.noreply.github.com>
Co-authored-by: Drew Thomas <7672425+CDThomas@users.noreply.github.com>
@fimac fimac requested a review from CDThomas October 18, 2022 00:09
@fimac
Copy link
Copy Markdown
Contributor Author

fimac commented Oct 18, 2022

Thanks for the review @CDThomas , I've addressed your comments.

Copy link
Copy Markdown
Contributor

@CDThomas CDThomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM

@fimac fimac merged commit f3c55c5 into main Oct 18, 2022
@fimac fimac deleted the put-stream-bi-direction branch October 18, 2022 00:14
freshtonic pushed a commit that referenced this pull request Dec 15, 2022
Update put stream to handle bi directional stream
freshtonic pushed a commit that referenced this pull request Dec 15, 2022
Update put stream to handle bi directional stream
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants