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 jsonrpc-http-server crate for the server side and the JSON-RPC crate for the client side.

After that, we created an example that uses the gRPC protocol for microservice interaction, and we used the grpc crate, which covers both the client and server sides.

In the next chater we will start to integrate microservices with database and explore available crates to interact with the follwoing databases: PostgreSQL, MySQL, Redis, MongoDB, DynamoDB.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.144.229