&gt;Could the entire stock market fit in a single hashmap in memory?<p>I don&#x27;t see why not. You also don&#x27;t have to put the entire market onto one machine - you can shard the market across multiple servers, with one server handling each symbol.