Skip to content

Cache published NBP data (opt-in) #207

Open

Description

@milten89

Idea

A published NBP table never changes, so answers for past dates could be cached. An opt-in cache (for example HybridCache in OpenUrzednik.Nbp.DependencyInjection) would cut latency and load on NBP for apps that ask for the same historical rates repeatedly.

Open questions

  • Where it lives: the DI package (a new Microsoft.Extensions.Caching.* dependency needs an ADR, ADR-0004) or a DelegatingHandler the app adds itself (documented recipe, no dependency).
  • What is cacheable: only dates before today (Europe/Warsaw); never "latest"/"today"/top-count.
  • Cache keys, sizes, and how errors are (not) cached.

Done when

  • An ADR (if a dependency is added) and the opt-in cache or recipe, with tests and README docs.

Activity

  1. added
    enhancement
    provider:nbp
    on Nov 6, 2026
  2. moved this from Triage to Backlog in OpenUrzednik.NETon Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementprovider:nbp

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions