Current look of the defi-orderbook rustproject i am working.
Nothing fancy just straightaway serving html css and js from rust Axum server.
Will polish it more and actually deploy it as a mini product.
As I was reading about how solana nodes and smart contracts communicate, I came across JSON-RPC.
But we are using http and ws to send data but the message follows the RPC message protocol.
There is good reason for such a decision.
1. No need to manage tons of enpoints. You just hit the "/" endpoint with your function name and parameter.
2. Create one message and it works identically across HTTP, WebSockets, raw TCP, or local IPC sockets.
3. You can bundle up several different function calls, therefore reducing network calls.
Comment what do you think? π§