The split has already been prepared on the Terraform infrastructure level by creating extra EC2 instances in the correct subnets. Now it is time to configure those virtual machines. With the creation of extra instances, we basically defined a split in functionality, which means we have a frontend tier, a backend tier, and now also a middleware tier. Now we have to run the Ansible scripts to make the application use that infrastructure. We describe the function and the name of the script. We mention the Jinja template that is used in the deployment, and the run command to use is the ansible-playbook command.
Splitting application components into frontend and middleware tiers
Splitting Sidekiq from the frontend
In the former...