Illustration
Illustration 관련
Let's discuss more about the diagrams below, and how they each interact with each other.
This illustration above is just a bird's eye view of how communication flows from the user to the program**.** I'll provide a complete illustration for more clarity. But before that, let's break the overview illustration into three stages.
Initial Interaction Stage
As said earlier, this is when the user interacts with the program, both @gear-js/api
and gstd
.
Business/Program Logic
This section depicts the communication between the program and Gear within Vara Network. The gstd
is used by the program to access the transmitted message (msg::load()
) from the initial stage to perform business logic.
Reply (Response)
This final stage shows how user feedback is delivered to the user or program. @gear-js/api
translates it if necessary, and then updates the dApp's UI with the results. This allows the user to see the outcome of their action within the dApp.
That's great, right? This should help you understand how messages are passed from the client to the program. But what does Vara Network role mean here? Earlier I said that, the message object get transmitted across the Vara Network, but I didn't say how. Let's explain that.