Skip to content

Add aggregation service #289

Description

@digitalghost-dev

In the pokemon command, chaining flags causes the same data to be re-fetched. Each flag calls /pokemon independently, on top of the base command's own /pokemon + /pokemon-species calls. Flags that fan out to related endpoints (-d/type/{name}, -m/move/{name}) don't dedupe those either.

An aggregation service can collapse this to one fetch per unique resource per invocation, saving network trips and setting up a clean place to plug in persistent caching later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementImprovement to an existing feature.

    Projects

    Status
    Building

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions