Coder Social home page Coder Social logo

Comments (5)

cjbj avatar cjbj commented on June 16, 2024

Just a heads up: if you are using the OCI session pool, in Oracle 12.2 the session pool has an always-enabled, lightweight check so pinging is unnecessary in the common failure scenario.
In node-oracledb we skip the getConnection() ping when using 12.2 client. Discussion is in the node-oracledb doc. Also see the same in ODPI-C.

from erloci.

shamis avatar shamis commented on June 16, 2024

@cjbj so you are saying the connections in the oci pool has an internal ping. This requirement is to check the validity of a connection that is held on by the application. Not sure how the internal ping comes into perspective here

from erloci.

cjbj avatar cjbj commented on June 16, 2024

@shamis yes, it is internal, so it covers some cases but not cases where users want to force a ping (though for scalability I'd still recommend they avoid pinging, and instead try the normal application logic and if it fails, re-connect and re-try the application logic. With OCI Application Continuity the OCI layer will do replays of work.) I was just giving you a FYI. Bottom line, OCI is trying to do more to make drivers like erloci easy to write and give them greater 'high availability'. The ODPI-C layer is also something to look at since it makes driver creation easier. We'll make node-oracledb and cx_Oracle use ODPI-C in the near future.

from erloci.

c-bik avatar c-bik commented on June 16, 2024

@cjbj Thanks for your interest and inputs.

Bottom line, OCI is trying to do more to make drivers like erloci easy to write and give them greater 'high availability'.

Honestly C/C++ (native) part is quite old and not being kept updated to latest and greatest OCI features. Sometime soon it will definitely benefit from some upgrade efforts.

The ODPI-C layer is also something to look at since it makes driver creation easier.

ODPI-C looks interesting and perhaps completely (or with a small amount of glue coding) can replace erloci_lib.

A quick look into ODPI-C repo:

  • no tutorials (samples are good enough though)
  • no test bench marking data
  • no major release yet
    perhaps its better to wait a bit before considering ODPI-C in erloci

A C++ (with ref/sp instead) wrapper alternative would however be a better candidate than ODPI-C to upgrade erloci_lib with, if there is one -- OCCI perhaps?

We'll make node-oracledb and cx_Oracle use ODPI-C in the near future.

How are you performance bench marking node-oracledb?

from erloci.

cjbj avatar cjbj commented on June 16, 2024

@c-bik Thanks for the points about ODPI-C. Improving C++ use is a topic we are discussing (/cc @tianfyang, @anthony-tuininga).

If you have any comments about how ODPI-C's API's would or wouldn't work for erloci, let us know before we go 'production'.

We run a bunch of load and stress tests with development-level benchmarks. This is in-house due to use of infrastructure tooling. Functional tests and doc will be added to ODPI-C as the project continues.

from erloci.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.