Resurrect this thread.Embedding SQLite directly into OpenResty will allow to deliver the solution in a single binary. A lot of applications don't require high performance while a single binary including webserver, database is quite attractive.
And there is already a feasible upgrade path when you need more scalability: https://github.com/rqlite/rqlite
--
You received this message because you are subscribed to the Google Groups "openresty-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openresty-en...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Also worth a pedantic note, OpenResty isn't currently delivered as a single binary. It's a single project, but multiple binaries (the Nginx binary itself, LuaJIT, CJSON, etc), are delivered as separate binaries.
--
I am almost positive Tarantool can be embedded into OpenRestry, without reinventing the wheel.
I have a need for a Lua scripting environment haven't with an embedded NoSQL/SQL, I haven't given Tarantool much thoughts for now, but its on my radar.
Hi,
Sophia db [1] could be a good fit as well. It is the store that tarantool uses for persistence and it has a couple of lua bindings [2]. Both the features list and the performance numbers are impressive.
That being said, I have no real experience with it.
[1] http://sophia.systems/v2.1/index.html
[2] https://github.com/Wiladams/LJIT2Sophia and https://github.com/mkottman/lua-sophia
-----Original Message-----
From: "Yichun Zhang (agentzh)" <age...@gmail.com>
Sent: Friday, 27 May, 2016 21:42
To: "openresty-en" <openre...@googlegroups.com>
Subject: Re: [openresty-en] Re: Nginx + Lua + SQlite
openresty doesn't support sqlite directly, but it shouldn't need to. you should be able to communicate with an existing server using LuaRestyMySQLLibrary just fine.
you really should be using an external server anyway because
nginx uses multiple worker processes (and therefore multiple Lua
VMs).