Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Sync item list between perl scripts, across servers

by GrandFather (Saint)
on Nov 14, 2016 at 09:06 UTC ( [id://1175866]=note: print w/replies, xml ) Need Help??


in reply to Sync item list between perl scripts, across servers

A "regular file" isn't going to cut it for you. For such concurrent access to work and be robust at least each update to the file must be serialized to ensure the queue's integrity.

There are several ways around the problem, but none are altogether trivial. Probably the easiest way to do it is to set up a transacted database to manage the queue. Even using transacted updates some care needs to be taken to ensure queue item insertion and removal are handled correctly.

Premature optimization is the root of all job security
  • Comment on Re: Sync item list between perl scripts, across servers

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1175866]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-19 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found