in reply to Re: Simple JSON based data storage - what would you recommend?
in thread Simple JSON based data storage - what would you recommend?
Thank you. You're right - I was overthinking the whole thing. I'll update the files using File::Temp's tempfile and rename, and I'll store them under the same dir, with file name corresponding to the view name.
Then, on the frontend, I'll just have a handler associated with the path '/data/viewname' that returns the viewname file contents (JSON).
There is a blurt_atomic sub in Sysadm::Install that handles the tempfile/rename routine, I'll either roll my own in a similar way, or just use the module as an added dependency.
Again, thank you, both for the time, and the good advice.
- Luke
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Simple JSON based data storage - what would you recommend?
by derby (Abbot) on Oct 15, 2014 at 10:58 UTC |