I'm using this example https://github.com/BretFisher/node-docker-good-defaults
I have a nodejs backend app and I have 1 replica of the service. And the "deploy" section in the docker-stack.yml file looks like this:
deploy:
update_config:
order: start-first
When I make a new version of the app, and then update the service, during the update, I have an overlap of the working "old" and "new" version of the app.
Steps to reproduce:
- build a new version of the app
- update the service
- send requests to the backend app each 10ms.
Result: at some point in time I see responses from the old and the new version.
Is it expected behavior?