As far as I was aware lua-resty-http uses the co-socket API. Am I misunderstanding something here?
On Friday, June 14, 2019 at 6:42:18 AM UTC-7, sdmrnv wrote:
Hello!
Thank you for answer! Similar idea visited me. Build middle-layer receiver (that uses http or another protocol) for the end clients and this receiver communicates with Oracle DB via OCI. But my concern in this case is that I will lose advantage of using cosocket API. As variant I can build C-library that will work with Oracle DB via OCI and build LUA wrapper for this library. But this is not cosocket API approach such realized in Resty-Redis, RestyMySQL.
Regards, sdmrnv
пятница, 14 июня 2019 г., 15:32:28 UTC+3 пользователь Jim Robinson написал:
Speaking off the cuff what I'd probably do if I needed to integrate OpenResty with any DBMS is to reach for an http interface. There are lots of apis, such as Java JDBC, that could be used to build an http service point that accepts SQL and returns responses from the DBMS. OpenResty could be used to talk to such an http based service point cleanly using cosocket APIs (e.g., using lua-resty-http).