# US 2023/0273845 A1 · File discovery on a data storage device based on a filesystem location of microservices

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0273845 A1
- Document ID: US20230273845A1
- Status: Published application
- Kind: A1
- Application number: 17/733,672
- Filed: 2022-04-29
- Published: 2023-08-31
- Earliest claimed: 2021-04-29
- Inventors: Michael G. Whitfield
- Web page: https://patentgrep.com/patent/US20230273845A1

## CPC

- G06F 8/36: Software reuse
- G06F 9/547: {Remote procedure calls [RPC]; Web services}
- G06F 8/70: Software maintenance or management
- G06F 16/148: {File search processing}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure describes creating a cache of discovered directories in a filesystem stored on a data storage device wherein said cache of discovered directories describe packages that are semantically constructed as microservices, among numerous other aspects.

## Claims

### Claim 1

A computer-implemented method, comprising:
instructions, stored in non-transitory computer readable memory, that, when executed by a processor, cause the processor to perform the steps of:
creating a cache of discovered directories in a filesystem stored on a data storage device; and
using the cache to reduce the time cost of microservice discovery,
wherein the cache of discovered directories describes local packages that are semantically constructed as microservices.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the instructions further comprise:
creating a “development mode” where the local packages are discovered at the outset of each execution, and the local packages objects are refreshed only if they have a more recent modification time;
creating a “production mode” where the local packages are only discovered on a first run, and the local package objects are only read into the cache one time,
wherein package manager managed packages are discovered only upon installation and package manager managed package objects are read into a cache only upon installation.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the instructions further comprise:
distinguishing between package manager managed microservice directories and developer managed microservice directories responsive to one or more of storing, querying, loading, and refreshing of the cache.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the instructions further comprise:
providing an application programming interface (API) to enable access to ambiguously known files across microservices on the data storage device, the API providing lookups using wildcard patterns and globstar patterns using an in-memory cache of discovered microservice directories.

### Claim 5 (depends on 3)

The computer-implemented method of claim 3, wherein the API is further enabled to load files across disparate data storage devices, filesystem trees, and filesystem trees of networked computers by way of an interface within the package object to declare its files as shared or allowing a package to be specified as shared, and
wherein shared package paths are stored in a centrally known cache location so that the central cache can be read and known to contain information about microservices on the computers filesystem

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein the instructions further comprise:
performing lookups with the API within shared package paths.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, wherein the instructions further comprise:
allowing the lookups to be triggered by a remote computer.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, wherein the instructions further comprise:
allowing the results of filesystem lookups to be made available to a remote computer.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the instructions further comprise:
providing an application programming interface (API) to enable access to a list of ambiguously known file names across microservices on the data storage device, the API to display the list in a priority order via a user interface that is useful in enabling developers to meaningfully organize one microservice to specify defaults and another microservice override those defaults.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein the instructions further comprise:
providing an application programming interface (API) to enable loading of JSON files ambiguously known across microservices on the data storage device and to enable merging of the JSON files together in a priority order,
wherein the usage of merging for the purposes of simply devising meaningful data objects for a microservice and meaningful configurations for a microservice by enabling a microservice to specify only the minimum configuration it needs to override other microservice defaults and configurations.

### Claim 11 (depends on 9)

The computer-implemented method of claim 9, wherein the instructions further comprise:
using lookup API's to serve a queried set of ambiguously known files across discovered microservices over a web server,
wherein the lookup API's are used to assemble a JavaScript payload composed of ambiguously known JavaScript files scanned across microservices so that the JavaScript payload is sent as one bundled file instead of requiring each file to be requested or specified for bundling, and
wherein the usage of the lookup API's to assemble a CSS payload composed of ambiguously known CSS files scanned across microservices so that the CSS payload is sent as one bundled file instead of requiring each file to be requested or specified for bundling.

### Claim 12 (depends on 1)

The computer-implemented method of claim 1, wherein the instructions further comprise:
consolidating dependencies across discovered microservices within a root path so that the package manager installation can be performed only once and the downloaded and installed
