[baseten-users] Portable Distributed Objects

Tuukka Norri tuukka.norri at karppinen.fi
Sun Jun 14 06:24:16 EEST 2009


Hi!

Daniel Brajkovic kirjoitti 13.6.2009 kello 19.32:
> Speed is not an issue because the best alternative now, is consuming  
> a web service, and opening, authenticating, closing connections has  
> GOT to be slower than maintaining a open connection.
>
> But you raise an interesting point that I did not consider; I didn't  
> consider that the BXDatabase objects would live on the Server then,  
> not on the client. It would be an interesting experiment as to how  
> many clients such a setup could handle.
I'm a bit concerned about calls to -[BXDatabaseObject  
primitiveValueForKey:]. I'm not at all certain but I think  
NSArrayController (and other NSController subclasses) could call - 
valueForKey: multiple times for the same object even if the value  
hasn't changed. If the value is returned by reference and the  
corresponding object exist on the server, reading it over and over  
could be slow. Don't take my word for it without testing, though.

> Since I wrote the original email, I did some looking and found this  
> in PostgreSQL docs (looks like its new for PostgreSQL 8.4rc1):
> ...
> This would solve my problems because I could just email clients a  
> valid cert.  Would it be difficult to implement this into BaseTen?
We originally had plans to make certificate authentication available  
in BaseTen, until we found out that it may only be used in addition to  
another authentication mechanism. We'll definitely look into this. The  
certificate would probably be stored in the user's keychain and  
converted to PostgreSQL's desired format using Security.framework, so  
I don't think that implementing it would be difficult.

I'd ask PostgreSQL developers about making the server accessible from  
the Internet, though, even if clients are required to use SSL and have  
a certificate.

> And have you tried BaseTen with 8.4 beta?
Unfortunately not yet. Now that WWDC has ended, I'll have some  
vacation but we'll test it as soon as I return to work.
-- 
Best regards,
Tuukka Norri
MK&C




More information about the baseten-users mailing list