[baseten-users] Portable Distributed Objects

Tuukka Norri tuukka.norri at karppinen.fi
Sun Jun 14 04:58:49 EEST 2009


Hi!

Daniel Brajkovic kirjoitti 13.6.2009 kello 11.15:
> To use BaseTen, I can expose my PostgreSQL DB to the internet, but  
> I've read OVER and OVER that that is not good practice. Especially  
> in my case where, multiple subscribers all use a single database,  
> but only have access to their own records. And each subscriber can  
> also have multiple users.
>
> Alternatively, what if I vended a ServerObject via Portable  
> Distributed Objects (PDO) and created a BXDatabaseContext  
> (remoteDatabaseContext) instance on the server. Then connect my  
> Array Controllers to that remoteDatabaseContext?

We haven't tested BaseTen with PDO and I hardly have any experience  
with it. There could be some speed issues if BXDatabaseObjects are  
instantiated on the server. Their database context reference should  
probably be changed to a DO proxy or another layer of caching should  
be added, but both would require some extra code.

Would it be possible to make the database server available only over  
VPN? We use that kind of an arrangement.
-- 
Best regards,
Tuukka Norri
MK&C




More information about the baseten-users mailing list