The where keyword in Rust
The where
keyword in Rust is used to declare type constraints in a clearer and more readable way.
The where
keyword in Rust is used to declare type constraints in a clearer and more readable way.
Foreign Function Interface (FFI) is a way for programs written in one language to communicate with libraries or functions written in other languages.
In short, an N+1 query problem occurs when for each row returned in an initial query (to a sql database for example) your application needs to perform a second query to retrieve additional data from another table. Let's see what its implications are and how to avoid this problem...
gRPC (recursively stands for "gRPC Remote Procedure Call") is a framework released by Google in 2015 that uses HTTP2 for its transport layer and Protobuf (Protocol Buffer) both as its IDL (Interface Description Language) for defining its contracts, services, and messages, as well as the serialization protocol for data transport (a binary serialization in this case).
This exercise aims to facilitate the understanding of the binary serialization method of protobuf by comparing the storage density of information with the text/json format.
Continuing with our series of Hello World! gRPC implementations, we will now implement our Greeter service (server & client) in Rust using the Tonic library, which is part of the Rust Tokio stack.