News for hackers. Stuff that matters.
Re:OpenResty: A Swiss Army Proxy for Serverless by mrkurt on Tuesday May 26, 2020 @01:06PM (#23313629)
OpenResty is pretty great, I think people would abuse the heck out of it it weren't so heavily Lua but when people do find it they build some amazing stuff (like Kong).

We have a fair number of people running OpenResty on Fly.io. It's a pretty good fit. I'd _love_ to have an OpenResty based on v8/JavaScript that wasn't so heavily tied to nginx events, I could build so many neat apps.

Re:OpenResty: A Swiss Army Proxy for Serverless by fosk on Tuesday May 26, 2020 @02:06PM (#23314428)
For what is worth, OpenResty has proven to be a very solid foundation for Kong. We did have to build some foundations for when it comes to setting up testing and project management in the early days, but the flexibility and performance we are able to achieve (especially when running on top of LuaJIT) is just best in class.

If you want to take a look at a fairly large (maybe the largest?) OpenResty application you can take a look at https://github.com/Kong/kong

Disclaimer: I am CTO at Kong

Re:OpenResty: A Swiss Army Proxy for Serverless by imprettycool on Tuesday May 26, 2020 @01:40PM (#23314115)
I'm glad it's Lua since it gives me a leg up over all the other companies with devs who don't want to learn a new language. OpenResty is slept on so hard.
Re:OpenResty: A Swiss Army Proxy for Serverless by tlarkworthy on Tuesday May 26, 2020 @01:30PM (#23313978)
Yeah, this was my first time with Lua, but previous experience with nginx and it was one of those times when an experiment exceeded expectations. It's a bit annoying Lua comments are -- and nginx are #. I got those mixed up so many times and wasted a cycle. I wish there was a syntax highlighter for this hybrid language.
Re:OpenResty: A Swiss Army Proxy for Serverless by asguy on Tuesday May 26, 2020 @02:26PM (#23314675)
I found it way easier to just write lua externally, and use *_by_lua_file directives.
Re:OpenResty: A Swiss Army Proxy for Serverless by tiffanyh on Tuesday May 26, 2020 @08:13PM (#23318026)
Isn’t cloudflare largely built on OpenResty.

Also, why for the desire to have JavaScript built in. There’s a number of language features of Lua that make openresty possible that I’m not certain JavaScript could provide.

Re:OpenResty: A Swiss Army Proxy for Serverless by mrkurt on Wednesday May 27, 2020 @02:37PM (#23327809)
I prefer TypeScript to Lua and there are a lot of interesting JavaScript libraries I would want to use.