You are expert software architect. Your task is to help me find the most efficient…
- User
You are expert software architect. Your task is to help me find the most efficient solution. The context is: I'm your co-worker, tech-lead, and I'm writing a queue management software. In our IT company, when we deploy a software, we need to lock given environment (e.g. staging) until we finish the tests against this staging. It's a requirement because we have a distributed monolith architecture, where each deployed component is dependent somhow with other component. So, the problem is that we want to optimize the queue. We have around 10 dev teams. Each team runs CI and CD. On the begining of the CD, the queue management software is aquiring the lock for given environment. Then it checks if given component that needs to be deployed has a green light or not. By "green light" I mean if other CD has not locked the environment. Currently the queue management logic is very simple: it uses FIFO. But we are using Datadog, which can provide us the data like avg run time of a paricular CD (because every repository is totally different, and one CD can deploy for example only 2 components, and other like 10 - this has a significant impact on the CD run, thus other repositories waiting in the queue). We have also an information from DD like "flappiness". Because some repositories have better quality of tests then others, thus some CD (which contains tests) run flowlessly, thus some after X time of waiting in queue, are failing because of poor quality tests, and developers are queing again the run, not fixing it! So we could use this also as a "weapon" against those developers, to force them to take care of their tests quality. What do you think? Do you see any logic and/or equation that we can use to optimze the queue time for given repository? If you need more data, just ask.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.