3 ms·
> can be solved quickly and easily without going to another level of coding We've recently done a refactor of a lot of complex load balancer rules into lua +
by GrinningFool 13y ago
> can be solved quickly and easily without going to another level of coding
We've recently done a refactor of a lot of complex load balancer rules into lua + redis. It really is a lot more maintainable.
While it is more maintainable, don't let the illusion fool you - the complexity is still there. The solution may be quicker, but you still had to write code for the solution. It's just different code - and in a different place - from where you'd otherwise put it.
In our case, it made sense - the logic was all already in the load balancer, it was just a lot more scattered. In other cases - such as splitting what is truly application logic between your LB and your application - it may lead to more headache than it's worth in exchange for a few ms of performance improvement.
(I'll likely be writing this thought up in more detail in the near future.)