lp1102300 auto-register .md5 variants of methods collab/phasefx/auto_md5_method
authorJason Etheridge <jason@esilibrary.com>
Mon, 21 Jan 2013 08:12:18 +0000 (03:12 -0500)
committerJason Etheridge <jason@esilibrary.com>
Mon, 21 Jan 2013 08:20:02 +0000 (03:20 -0500)
commit2b3a78993f0eee042677c32868fcf3fc19095cf7
treefcdc310320ef7ef08e9b8b573899ee19cf7ffb7a
parent0c40bc6c40ff55b1ddf8bfe9b5e6ebaa87be5113
lp1102300 auto-register .md5 variants of methods

This only handles the Perl side at the moment, and probably very naively (for
example, opensrf.system.echo.atomic.md5 and opensrf.system.echo.md5 do not
return the same MD5's for the same input--though that's not important for my
purposes).  If someone wants to clean it up and implement the C side of it as
well, that would be awesome.

One downside is that at times, we will be doubling the amount of work done on
the server (whenever we call an .md5 method and then decide to call the real
thing), however, in the context of Evergreen, most servers that I'm aware of are
hardly ever under load, and instead it's network, data-size, and client issues
that cause poor responsiveness, so I think it's more important to send less data
over the wire when we can, and this will help with that.

Example:

srfsh# request open-ils.actor opensrf.system.echo.md5 "test"

Received Data: "303b5c8988601647873b4ffd247d83cb"

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
src/perl/lib/OpenSRF/Application.pm