Summary
This chapter covered good practices for creating reactive microservices architecture. We started our learning from basic concepts: what a reactive approach is, how to implement it, and how remote procedure calls helps to implement message-driven architecture. Also, we discussed existing RPC frameworks and crates that you can use simply with Rust.
To demonstrate how reactive applications work, we created two examples of microservices that use RPC methods to interact with each other. We created an application that uses a ring of running microservices that send requests to each other in a loop till every instance is informed about an event.
We also created an example that uses the JSON-RPC protocol for instance interaction and used the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access