-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathREADME
61 lines (41 loc) · 1.9 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Data-Consumer
Framework for repeatedly consuming a data resource in a robust way.
It is a common requirement to need to process a feed of some sort in
a robust manner. Such a feed might be records that are inserted into
a table, or files dropped in a delivery directory, or what have you.
Writing a script that handles all the edge cases, like getting "stuck"
on a failed item, and manages things like locking so that the script
can be parallelized can be tricky and repetitive.
The aim of Data::Consumer is to provide a framework to allow writing
such consumer type scripts as easy as writing a callback that processes
each item. The framework handles the rest.
The basic idea is that one need only define a Data::Consumer subclass
which implements a few primitive methods which handle the required tasks,
and then the Data::Consumer methods use those to provide a DWIMily
consistant interface. Currently Data::Consumer comes with two subclasses,
Data::Consumer::MySQL for handling records in a Mysql db (using the
MySQL 'get_lock' function), and Data::Consumer::Dir for handling a drop
directory scenario (like for FTP or a mail directory).
INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
make test
make install
SUPPORT AND DOCUMENTATION
After installing, you can find documentation for this module with the
perldoc command.
perldoc Data::Consumer
You can also look for information at:
RT, CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Data-Consumer
AnnoCPAN, Annotated CPAN documentation
http://annocpan.org/dist/Data-Consumer
CPAN Ratings
http://cpanratings.perl.org/d/Data-Consumer
Search CPAN
http://search.cpan.org/dist/Data-Consumer
COPYRIGHT AND LICENCE
Copyright (C) 2008, 2010, 2011 Yves Orton
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.