Skip to content

feat: improve imager#63

Merged
KaioFelps merged 3 commits intodevfrom
cache-users-figures
Jan 15, 2026
Merged

feat: improve imager#63
KaioFelps merged 3 commits intodevfrom
cache-users-figures

Conversation

@KaioFelps
Copy link
Copy Markdown
Owner

This PR refactors Habblet imager's provider to use singletone http clients for performing http requests to Habblet's users endpoints.

It also introduces a cache of user's figures, what reduced imager requests duration from 300ms (in average) to 1ms (in a low latency scenario).

This drastically reduces http requests to habblet's user api to get their figure by nickname, making most of requests close to instantaneous
@KaioFelps KaioFelps added the enhancement New feature or request label Jan 15, 2026
@KaioFelps KaioFelps merged commit f26dbc8 into dev Jan 15, 2026
16 checks passed
@KaioFelps KaioFelps deleted the cache-users-figures branch January 15, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant