What this covers: high effort first releases, canary releases, effort levels, and traces. It also covers max turns, median and max cost, and budget checks in a gateway before each call.
Start with high effort
Like the first release, as I said, it doesn't need to be in your first release itself, you need to figure things out. Of course, the first release is oftentimes the actual solution you wanted to accomplish, and you wanted to know what is the what is the best output. So you can go for high effort and then you can check for lower effort and see what is the balance of these two.
Send a small share to a canary
you can go for more like canary release, like you don't need to release a low effort in your second release, but rather like one percent or five percent or ten percent of the traffic goes to you know the second release, and remaining traffic will go to the first release, and then on upon the third release, you will be able to you know identify from the traces like what will go into low effort and then when it needs to be
Tune turns and budget from traces
escalated. So you will be able to figure out the pattern, what is the maximum turns, what is the max budget, and what will be the because the first time, of course, we will be guessing based on whatever eval suite we have prepared, but the real use cases will come only when you operate. So you started to operate with very strict budgets and so on, and then the parameter is you need to, you know, the gauge need to be like you need to find okay, this is happening. Then I need to reduce the the median cost is this much, and my max cost is higher than that. Let me reduce a little bit, and you know the number of runs which is taking to accomplish a task is five times, and my maximum turn is ten times. Let me reduce that, or the number of times in an average which takes is five times, and because of that, my number of turns is three, and oftentimes it is timing out, or it is not able to produce the result. But even though the run is going in a right path, then you need to cut you need to increase increase that. So if you are able to build that insights from your traces, so the most important part here is are you feeding those traces with valuable information that can able to you know gauge your engine which you can which you can turn on, turn off, and what parameter you need to put, then you will be on the safer side that you will be identifying what is the cost and how you can save that cost.
Three habits that cut the bill
Three habits that cut the bill, safely, like measure cost per task, and then one change per release. You can have consecutive releases, you can use techniques like canary deployments. you don't need to release everything for everyone, like you can release for five percent, and you can understand only with five percent traces that is completely okay, and then check the budget at each step, not just on the destination with the cloud provider, but rather on the input level itself in your gateway itself, even before the before the call is initiated.
That was the last lesson. Pro members watch every Lightning session cut the same way: Get Pro. Not sure what to learn next? Take the 2-minute assessment.