I have a PHP application which runs via the docker container. I am currently working on removing consul usage from PHP application and replacing it with vault.
The application consists of only cron jobs.
There is a script - [lock.sh], related to session creation and DB lock acquisition for each job. This script is useful in scenarios where we want to ensure that only one instance of a task runs at a time in a distributed system. Currently it is using Consul to manage the locking and session lifecycle, which we want to replace by vault.
can someone please help me with this?
Thanks in advance.