-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(providers): locking redis #9544
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very exciting @carlos-r-l-rodrigues, did you already run the same tests as without it?
/snapshot-this |
#9545 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few questions, but generally LGTM. Nice work!
packages/modules/providers/locking-redis/src/services/redis-lock.ts
Outdated
Show resolved
Hide resolved
We might need to draft up some docs on this new |
Document change introduced by #9544 > Note: fine to merge now as it requires generating references, which will only happen after the next release.
What:
New util added to export a provider:
ModuleProvider
Module providers are registered on the Module's container using the name
__providers__
+provider_key_name
. It is available on Module's loaders.Postgres: #9545
In case of
too many connection
issue, the first thing to check (especially when running many processes) is thepool
configuration inmedusa-config.ts
. e.g:Convention
With the current approach to load providers, we need to validate the convention being the following one:
providers
keys as the option being an array and must containresolve
id
(optional) only used if the provider does not have an identifier (@carlos-r-l-rodrigues wdyt of that, seems we need to validate something here)identifier
static property that would be used to register the provider into the module container under__providers__${identifier | id}