Matt Dainty > Perl-Critic-Storable-0.01 > Perl::Critic::Policy::Storable::ProhibitStoreOrFreeze

Download:
Perl-Critic-Storable-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Perl::Critic::Policy::Storable::ProhibitStoreOrFreeze - do not use store or freeze in Storable.pm

VERSION ^

version 0.01

DESCRIPTION ^

Imagine the scenario, you've got some Perl code running on a server that uses Storable's freeze and thaw to serialise Perl data to and from a shared store. The load on the server increases so you add another one to share the work. The two of them are happily sharing the workload both reading and writing each others serialised data, but then you need to add yet another server to handle the load, but this one is a different hardware platform and bang, your Perl code breaks.

Why? Because you didn't use the network-aware nfreeze, nstore, or lock_nstore.

AUTHOR ^

Matt Dainty <matt@bodgit-n-scarper.com>

COPYRIGHT ^

Copyright (c) 2008 Matt Dainty.

This program is free software; you can redistribute is and/or modify it under the same terms as Perl itself.

syntax highlighting: