-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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(server): run microservices in worker thread #9426
Conversation
Deploying immich with
|
Latest commit: |
5f2cf91
|
Status: | ✅ Deploy successful! |
Preview URL: | https://6ca1b140.immich.pages.dev |
Branch Preview URL: | https://feat-worker-threads-microser.immich.pages.dev |
7c00a48
to
94d13e4
Compare
94d13e4
to
1f84c9a
Compare
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.
🚀
function bootstrap() { | ||
switch (immichApp) { | ||
case 'immich': { | ||
process.title = 'immich_server'; | ||
if (process.env.INTERNAL_MICROSERVICES === 'true') { |
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.
Do we eventually want to have an env var for each worker, or rather something like IMMICH_ENABLED_WORKERS=api,web,microservices
?
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.
We can figure this out later, but a pattern like that might make sense
1f84c9a
to
13b65e6
Compare
…ices for the server
13b65e6
to
5f2cf91
Compare
POC for bringing microservices into the server instance by using Node.JS worker threads.