Best way to have an application run

I have a daily CSV file dumped to my filesystem, and I need to parse each row of it appropriately into an XML document of a certain format. From there, I need to send one POST request with that XML for each row as the body until all of the rows are sent.

It occurred to me that there's a few ways this can be done,

– a person can invoke the tool at the time of day the CSV file is available

– If the time of day is fixed, I can have some sort of mechanism invoke the tool automatically (e.g. cron job, etc?)

– i could have a long standing application poll for the file and act once it's found

– maybe an Observable pattern, but I don't know how the Observer could be notified without effectively polling for the file. And this doesn't seem like a genuine use-case for the pattern because there would only be one Observer.

My first instinct was I'll write a Node app. But I'm struggling to even see the justification for anything other than a Cron job right now. I know there's a better / more sophisticated way to do this. Any suggestions would be helpful.

submitted by /u/higherpublic
[link] [comments]

from Software Development – methodologies, techniques, and tools. Covering Agile, RUP, Waterfall + more!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create your website at
Get started
%d bloggers like this:
search previous next tag category expand menu location phone mail time cart zoom edit close