Skip to content

Commit 8ab8fc5

Browse files
committed
Add note about when to use DRCP
1 parent d860873 commit 8ab8fc5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/api.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8346,6 +8346,15 @@ resource sharing for applications that run in multiple client
83468346
processes or run on multiple middle-tier application servers. DRCP
83478347
reduces the overall number of connections that a database must handle.
83488348

8349+
DRCP is generally used only when the database host does not have enough memory
8350+
to keep all connections open concurrently. For example, if your application
8351+
runs as 10 Node.js processes each with a connection pool having `poolMax` of
8352+
50, then the database host must be able to have 10 * 50 = 500 database server
8353+
processes open at the same time. If the database host does not have enough
8354+
memory for these 500 server processes, then DRCP may be a solution because a
8355+
smaller pool of server processes will be shared between all the Node.js
8356+
connections.
8357+
83498358
DRCP is useful for applications which share the same database credentials, have
83508359
similar session settings (for example date format settings and PL/SQL
83518360
package state), and where the application gets a database connection,

0 commit comments

Comments
 (0)