Answer the question
In order to leave comments, you need to log in
How to create a code unload queue in production?
Good day, please tell me how to send code to production without restarting the service?
There is a certain release that works stably and everything is generally good, but how to automate the code so that if a number of patches are made to the code, this would not affect the performance of the service at all? In other words, I uploaded the code and all changes in both the front-end and back-end took effect within 3-5 seconds.
Answer the question
In order to leave comments, you need to log in
When deploying, a new release folder is created, in which everything is installed and rolled, upon completion, a symlink to the new release is created. This is exactly how Deployer works .
The fron is usually unloaded in its entirety in these few seconds, there is not much to do here.
For back - it all depends on how you deploy, there are a lot of options.
For example, you can deploy as described above - through symlinks, or through docker containers (for example, dokku can zero-downtime deploy)
The question is rather vague, but it might be worth reading about Blue-green deployment and Canary Release
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question