[Standards-JIG] An XMPP Race Condition most Vexing

Jesus Cea jcea at argo.es
Mon Oct 30 19:50:20 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthias Wimmer wrote:

>> The questions are:
>>   1) Can a higher concurrency implementation be made with the existing 
>> protocol?  Chris says no, but what do others say?
> 
> I say "yes".

Not jabber related, but in my current assigment, we do "optimistic
concurrency". That is, proceeed at full speed, without any lock, and
check for conflicts when the commits arrives. If you have a conflict,
the library simply discards the changes and retry. 99.999% of the time
you have no conflicts, so you don't require an explicit lock arbitration.

Fast, clean, simple.

- --
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea at argo.es http://www.argo.es/~jcea/ _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea at 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.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRUZXfJlgi5GaxT1NAQLFaAP/dJC54P6TvtdRVbyD/zMxSfUP4/0CjXk3
NZbuzAIVoWsbabeQzYI4+0skox17Lq45/WNjS8Ep84B5QUBhJ0yWSGHHmncipAS4
L3cqGERkStiAztSuI/yTW9bPpYDGUByHbikfJg0hhZorc3jY9r0YdMnzL2FvaG4h
jq1J5noiXdg=
=6a5y
-----END PGP SIGNATURE-----



More information about the Standards mailing list