• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

Reliability in production (1 Viewer)

Sonazuma

Administrator
Staff member
Joined
Jan 6, 2020
Messages
33
Reaction score
10
Hi all :)

I received this email from the CEO of a company:
Code:
I've found that openresty lua is very good for MVP and prototyping, but can not be safely used in production.
Particularly, socket connections to mysql and redis are dying silently on a high load condition.
You connect, check that the result of connection is OK, then try to read from mysql/redis and it just silently fails.
It happens from time to time and hard to catch, but makes it unusable in production.
There are some issues regarding this problem on the github with no solution provided.
Just for your information.

I asked what he switched to in production, and he answered:
Code:
nginx on a front with node.js microservice workers

Any ideas?
 

dinsdale247

Moderator
Staff member
Community Patron
Creator of WinLua
Joined
Nov 17, 2020
Messages
93
Reaction score
32
Location
Victoria BC
Website
winlua.net
Hi all :)

I received this email from the CEO of a company:
Code:
I've found that openresty lua is very good for MVP and prototyping, but can not be safely used in production.
Particularly, socket connections to mysql and redis are dying silently on a high load condition.
You connect, check that the result of connection is OK, then try to read from mysql/redis and it just silently fails.
It happens from time to time and hard to catch, but makes it unusable in production.
There are some issues regarding this problem on the github with no solution provided.
Just for your information.
That's heartbreaking. A thing of nightmares.
I asked what he switched to in production, and he answered:
Code:
nginx on a front with node.js microservice workers
That's heartbreaking. A thing of nightmares.

I jest, if I had a large web project I would be hard pressed not to choose node.js over a lua platform, just for the shear difficulty of finding lua developers. Not that my manager would let me write something like that in Lua (pouty face).

I don't use openresty, I use a platform called lua-http. @Hisham works at Kong and probably knows a thing or two about OpenResty? Did the CEO consider the Kong platform? The lua mailing list is probably best for an issue like his; not that he seems inclined to discuss the issue. There are some deeply technical people on the mailing list that use openresty in large production systems. I can think of a couple of ways he could have reached out for more information, but I get how frustrating it is when the problem at hand seems to have fallen on deaf ears. The question is always "well if this is an issue, what else doesn't work?"

I think there are only a handful of choices for web platforms in Lua. OpenResty, Lua-http, Luv, sailor, ?. I have compiled and used the Apache24 Lua module, but I never got past a 'dynamic' hello world page.
 

darkwiiplayer

Newcomer
Joined
May 30, 2020
Messages
10
Reaction score
2
Age
27
Location
Germany
I think there are only a handful of choices for web platforms in Lua. OpenResty, Lua-http, Luv, sailor, ?. I have compiled and used the Apache24 Lua module, but I never got past a 'dynamic' hello world page.
I've also played with the tarantool http module for a while and it looks very usable. I haven't used it to the extent where I could tell whether it's reliable enough to be used in production, but on the surface at least it seems to be working quite well.
 
Top