
In this guide
The decisions and working steps ahead.
Give the test a known inventory
Measure the feed from the receiving process
Ask for the recovery record
A market-making system loses its subscription while two orders are open. One order fills in part before the feed returns. The service needs to recover the filled quantity, the order remainder, and the current inventory before it marks its view as current. A successful reconnect proves the socket is open. The reconciled records show whether the service can use the state it recovered.
Use a simulator or a public event replay for the first test. Name the venue, market, account, and commitment level. An order-book integration such as OpenBook exposes an order-book program and client, but the event, order, and balance records used to recover the state depend on the venue and its version. OpenBook v2 program and client · Solana commitment levels
Give the test a known inventory
This fixture uses base units and ignores fees. The opening inventory is 100. The order ledger has an ask for 20 and a bid for 10. During a simulated interruption, six units from the ask are sold. At recovery, expected inventory is 94, the ask has 14 left, and the bid remains open for 10. Make the operator report those three values and the source used for each.
Replay the same fill notification after recovery. The inventory should stay at 94. Then remove the order from the snapshot without supplying a reason. The service should leave its disposition unresolved until venue records explain whether the rest was cancelled, filled, or expired. Keep reserved amounts separate from available inventory when the venue distinguishes them.
Measure the feed from the receiving process
High-frequency systems are sensitive to what the process sees, when it sees it, and what it does when the feed falls behind. Record the receive timestamp, source slot or sequence when available, expected ordering, and the time it takes to recover a verified view after reconnecting. Report distributions for comparable samples with the region, transport, commitment, sampling window, and number of dropped or unresolved events. A slot identifies where a source update belongs. It does not establish the time it took to reach a particular process. Solana RPC methods
Keep quotes and trading disabled in the recovery fixture while the state is unresolved. Report the period of uncertainty alongside latency. The reviewer should be able to tell whether a system stopped cleanly, replayed the missing range, reconciled its state, and then regained its verified view.
Ask for the recovery record
Save the starting snapshot, synthetic events, final inventory and order state, and the references used to resolve any gaps. Include the venue's account and unit definitions. This makes the result repeatable after an indexer change, a new market integration, or a reconnect logic change. The example measures recovery behavior in a fixture. It makes no claim about live fill quality or trading returns. Builderz Solana DeFi development · Solana transaction reliability