A real-time analytics company called DataStream builds an agent that exposes a lightweight status endpoint returning health state and a full data-processing RPC method that triggers ETL jobs. The team uses query() for the status check and an RPC method for the ETL job. During an incident, the on-call engineer notices that query() returns stale cached data while RPC methods correctly reflect the latest state. What architectural difference explains this?
RPC Methods
Loading lesson content...
A developer uses query() for a banking transaction. The transaction sometimes succeeds but the client gets a timeout and retries, causing double-spending. What's wrong?
An agent's query() handler is slow because it processes large amounts of data. Multiple clients query simultaneously and block each other. What's the fix?