Обсуждение: Replicating JDBC proxy

Поиск
Список
Период
Сортировка

Replicating JDBC proxy

От
henk53602@hotmail.com (henk53)
Дата:
I would like to have a constantly updated copy of my DB. In order to
realize this I have though of the following scheme:

A server is equiped with 3 NICs and is running a special 'proxy' JDBC
implementation.
The only thing this JDBC proxy does is:

1) Forwarding every update request on both ports. On each port a
server is running a JDBC compliant DB (in my case, postgresql)

2) Forwarding every select request on only 1 port.

Theoretically, this would give me a total synchronized DB, wouldn't
it? However, this sounds relative simple to implement. I've seen a
couple of replication efforts undertaken for postgresql that seems to
take forever to finish.

Am I overlooking something?

Re: Replicating JDBC proxy

От
Dave Cramer
Дата:
check out c-jdbc

http://c-jdbc.objectweb.org/

It does all you want and more..

Dave
On Fri, 2004-05-14 at 08:38, henk53 wrote:
> I would like to have a constantly updated copy of my DB. In order to
> realize this I have though of the following scheme:
>
> A server is equiped with 3 NICs and is running a special 'proxy' JDBC
> implementation.
> The only thing this JDBC proxy does is:
>
> 1) Forwarding every update request on both ports. On each port a
> server is running a JDBC compliant DB (in my case, postgresql)
>
> 2) Forwarding every select request on only 1 port.
>
> Theoretically, this would give me a total synchronized DB, wouldn't
> it? However, this sounds relative simple to implement. I've seen a
> couple of replication efforts undertaken for postgresql that seems to
> take forever to finish.
>
> Am I overlooking something?
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
>       joining column's datatypes do not match
>
>
>
> !DSPAM:40ad9632179968186840688!
>
>
--
Dave Cramer
519 939 0336
ICQ # 14675561