phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Taylor <jamestay...@apache.org>
Subject Re: Hi, can Phoenix be used to substitute for RDBMS?
Date Tue, 25 Feb 2014 02:42:21 GMT
Hello Haebin,
Each web service request should open a new connection through
DriverManager.getConnection(url, props) and then close the connection when
the request has been completed. There's no need to pool these connections,
as Phoenix is already managing that for you.
Thanks,
James


On Mon, Feb 24, 2014 at 6:34 PM, Frederick Haebin Na <haebin.na@gmail.com>wrote:

> Hello all and James,
>
> I found the similar question [1] in the old mailing threads.
> The answer seems to be yes but I am not quite sure on one thing due to the
> answer you gave in [2] and [3].
>
> Typically, web services expects parallel requests, so there needs to be a
> pool to handle these  parallel requests since JDBC connections are not
> thread safe. So, for this case, don't we have to use connection pool?
>
> Best,
> Haebin
>
> [1]
> https://groups.google.com/forum/#!searchin/phoenix-hbase-user/connection$20pool/phoenix-hbase-user/wD0kk8E9JPo/Vb9PVtxDTR0J
> [2]
> https://groups.google.com/forum/#!searchin/phoenix-hbase-user/connection$20pool/phoenix-hbase-user/U3hCUhRTZV8/YBgY6g9bVdsJ
> [3]
> https://groups.google.com/forum/#!searchin/phoenix-hbase-user/$20thread$20safe/phoenix-hbase-user/lL-SVFeFpNg/gBkBCXELaHIJ
>
>
> --
> *Frederick Haebin Na*
> Change, Really
> mobile: +82-10-6540-5679
>

Mime
View raw message