News for hackers. Stuff that matters.
Re:Nginx Tutorial: Developing Modules by al_the_x on Monday July 28, 2014 @02:30PM (#8098521)
I would also like to see this approach in Lua by comparison. I find the performance loss negligible compared to the ease of writing / debugging Lua.
Re:Nginx Tutorial: Developing Modules by yellow on Monday July 28, 2014 @12:18PM (#8097676)
In a cursory glance, this appears to be logic (token, redis, etc) that can be handled by Nginx+Lua. Is there any reason to do it this way vs the other?
Re:Nginx Tutorial: Developing Modules by abedra on Monday July 28, 2014 @12:21PM (#8097692)
The intent was to demonstrate how to write a module in C. This can be solved with Lua as well.
Re:Nginx Tutorial: Developing Modules by yellow on Monday July 28, 2014 @12:36PM (#8097816)
I was hoping for a performance related answer, but you are right. I might walk through this and see if one way is faster than the other. Thanks!
Re:Nginx Tutorial: Developing Modules by justincormack on Monday July 28, 2014 @12:53PM (#8097943)
Using Lua is much easier. Performance is unlikely to be a bottleneck. Developing a module is a real pain and a last resort.
Re:Nginx Tutorial: Developing Modules by abedra on Monday July 28, 2014 @01:03PM (#8097998)
Using Lua is certainly easier. The C version will almost always be faster, and yes, performance in this scenario probably wouldn't be an issue between the two. The other reason for writing a module in C though is complete control over the execution and an easier time troubleshooting problems. Adding another language layer can present issues when things explode.
Re:Nginx Tutorial: Developing Modules by joewalnes on Monday July 28, 2014 @04:09PM (#8099049)
I love how this tutorial starts by writing an automated integration test. More tutorials should do this. A fine job. Have a cookie.
Re:Nginx Tutorial: Developing Modules by hmhecht on Monday July 28, 2014 @04:54PM (#8099275)
Excellent tutorial, thank you for posting. All tutorials should be this complete.
Re:Nginx Tutorial: Developing Modules by berkay on Monday July 28, 2014 @12:49PM (#8097913)
thanks for this. It came in just at the right time as I was looking into this.
Re:Nginx Tutorial: Developing Modules by mceoin on Monday July 28, 2014 @02:41PM (#8098579)
Thanks for the video.
Re:Nginx Tutorial: Developing Modules by JarrettGoetz on Monday July 28, 2014 @04:16PM (#8099096)
This looks awesome!
Re:Nginx Tutorial: Developing Modules by techdoc on Monday July 28, 2014 @02:50PM (#8098629)
awesome video!