I am going all brute-force learning by trial-and-error with two things:
I am trying to understand what gRPC is by reading the gRPC: Up and Running Book and trying to implement the examples in the book (written in
java ) in Rust using
TBH, it is taking time but I am really getting hold of what it means to write apps in Rust.
I am in a bit stuck at this point though:
I have written a gRPC server where a user provides:
description of a Product and to a
addProduct service, where I replace the
id of the incoming request of the product with a UUID v4 and respond back with the updated UUID of the product.
This is working great and I can actually get a UUID back as a response
I wish to however write a
get_product implementation for the
ProductInfo service where I wish to stored the added product via
add_product temporarily and use the saved UUID to get the product information back.
I wish to know what is the simplest Beginner's way to do this for this example, without any external crates.