From: Dominik Csapak <d.csapak@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH datacenter-manager 0/3] refactor api caching & try to reuse the cache
Date: Mon, 13 Oct 2025 10:33:31 +0200 [thread overview]
Message-ID: <20251013083806.1068917-1-d.csapak@proxmox.com> (raw)
This series introduces a small refactored struct to access the api cache
(like we used for resources + subscription) so that we don't have to
repeat the same way for every bit of data we want to cache.
It also shows how we can add a mechanism to live update this cache
for e.g. pve resources api call and utilize it when the
remote is not reachable
Dominik Csapak (3):
server: api: resources: change use of remote to reference
server: introduce ApiCache abstraction
api/ui: pve: get cluster resources from cache if remote is unreachable
lib/pdm-client/src/lib.rs | 10 +-
server/src/api/pve/mod.rs | 48 ++++--
server/src/api/resources.rs | 165 +++++--------------
server/src/api_cache.rs | 87 ++++++++++
server/src/lib.rs | 1 +
server/src/metric_collection/top_entities.rs | 2 +-
ui/src/pve/mod.rs | 14 +-
7 files changed, 179 insertions(+), 148 deletions(-)
create mode 100644 server/src/api_cache.rs
--
2.47.3
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
next reply other threads:[~2025-10-13 8:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-13 8:33 Dominik Csapak [this message]
2025-10-13 8:33 ` [pdm-devel] [PATCH datacenter-manager 1/3] server: api: resources: change use of remote to reference Dominik Csapak
2025-10-13 8:33 ` [pdm-devel] [PATCH datacenter-manager 2/3] server: introduce ApiCache abstraction Dominik Csapak
2025-10-16 9:09 ` Lukas Wagner
2025-10-13 8:33 ` [pdm-devel] [RFC PATCH datacenter-manager 3/3] api/ui: pve: get cluster resources from cache if remote is unreachable Dominik Csapak
2025-10-16 9:09 ` Lukas Wagner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251013083806.1068917-1-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox