Patent ID: 8924472

Claim:
A computer system comprising: at least one computer processor; a plurality of storage servers, each storage server including a persistent storage device, each device including a database shard, database shards of the plurality of storage servers forming a distributed datastore; a plurality of web containers, each web container embedded in and executed by one of the storage servers and configured to: obtain locality information associated with data stored in the distributed datastore; receive a client request for data in the distributed datastore, wherein the client request enters through a datastore service layer; forward, based on the locality information, the client request to one of the database shards that includes the requested data; retrieve, from the database shard in response to the client request, results of a command executed by application logic on a local data set by the database shard, the results including the requested data; and return the retrieved data in response to the client request, wherein the client request is processed by an internal datastore API which utilizes a data locality lookup API plus a combination of local and remote storage access APIs.