We are testing a bunch of microservices that connect to Oracle NoSQL Database Cloud Service for storing and querying the metadata/event information of our services.
Question on whether the NoSQL handle can be used for every request was raised in my team.
Does the handle have any timeout period? Creating a new NoSQL handle is taking a little bit of time.
Below is my code snippet to create a new NoSql Handle:
SignatureProvider provider = SignatureProvider.createWithInstancePrincipal();
NoSQLHandleConfig config = new NoSQLHandleConfig(Region.US_PHOENIX_1, provider);
config.setDefaultCompartment(context.getCompartmenId());
NoSQLHandle handle = NoSQLHandleFactory.createNoSQLHandle(config);
return handle;
What are the security implications if I reuse the NoSql handle for every request?
Please advise.