durusmail: durus-users: latency improvement in "new_oid"
latency improvement in "new_oid"
2006-05-16
2006-05-16
2006-05-16
2006-05-16
2006-05-17
2006-05-17
2006-05-17
2006-05-17
2006-05-18
2006-05-16
2006-05-16
2006-05-17
2006-05-17
2006-05-17
2006-05-17
2006-05-17
2006-05-17
2006-05-17
latency improvement in "new_oid"
Jesus Cea
2006-05-17
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Binger wrote:
> It seems like a shame to force all of these apparently independent
> databases
> through global transaction arbitration.

No, David.

Each database is managed for a different thread using an instance of a
StorageServer. So I can have a single process with 21 threads: 20
threads managing 20 different and independent storages and a thread
managing the initial connection from a client, authentication and socket
transfer to the right database thread. From there on, the client is
linked to that storage thread, directly, independent of all other
storages in that process.

Since each storage thread is independent (have its own storage backend,
database, etc), arbitration is limited to that thread.

>> Aha! :). I, nevertheless, would like to offer object storage services
>> for my clients, just like now I offer ZOPE space or MySQL capacity.
>
> Maybe you should consider some higher level object storage application
> that perhaps uses Durus as the next layer.  It would be a minimalist
> variant
> of ZOPE space.

Could be an option, but it is so easy to do natively in durus that would
be a shame not to provide such a functionality out of the box :p. As I
already said, the code is already in production. It is a bit ugly, since
it was written in a couple of afternoons for my own use, but I could
rewrite it to make it more clean if you are interested.

- --
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea@argo.es http://www.argo.es/~jcea/ _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea@jabber.org         _/_/    _/_/          _/_/_/_/_/
                               _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRGs+iJlgi5GaxT1NAQLdTwP/dMfKKvax98BxAUq9lOBqVs6yPmkMvZTj
st+g7YYMYWFxs6GwNvIEUU8rnOlhCOragQrT6E5LkZm1HVqhRaGwu/+QrzvJZQ2L
bJMmZtiouJeOgmsk3DjwTrNFjnuYbtqZr7OHmu0cwbq+eusorKsPrCql7dy/KrqK
YN9biK3whB8=
=5PJn
-----END PGP SIGNATURE-----
reply