3 ms·
I'm also getting a lot of value from nginx+lua. It's amazing how many problems can be solved quickly and easily without going to another level of coding. And wi
by casca 13y ago
I'm also getting a lot of value from nginx+lua. It's amazing how many problems can be solved quickly and easily without going to another level of coding. And with the ability to call C libraries from within lua, integrating with 3rd-party binary libs has been another way to avoid another layer.
- jemeshsu 13y agoBeside the authentication highlighted by the article, any other use cases/problems that can be solved by nginx+lua?
- crawdog 13y agoi have been using lua for request manipulation and logging. here's a use case: you want to proxy request cookies from your application into 2 cookies (session/persistent), but you don't want to rewrite the legacy app. lua does a great job with request/response manipulation.
- 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.)