As of now trading server cache last transactions, best sell orders and best buy orders.
Each trading server cache these values localy (many copies).
Cache invalidation is done by sending appropiate message with new values: database -> notification hub -> trading server(s).
It'd be better (cleaner, and probably faster) to use a simple, fast, embedded KV store for caching and let notification server handle updating and trading servers reading.
As of now trading server cache last transactions, best sell orders and best buy orders. Each trading server cache these values localy (many copies). Cache invalidation is done by sending appropiate message with new values: database -> notification hub -> trading server(s).
It'd be better (cleaner, and probably faster) to use a simple, fast, embedded KV store for caching and let notification server handle updating and trading servers reading.