jam231 / sia

Stock market server (part of stock market simulation system).
1 stars 0 forks source link

Data caching #78

Open jam231 opened 10 years ago

jam231 commented 10 years ago

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.