I would start by agreeing that this is an excellent use case for a database under most conceivable operating conditions -- and SQLite will very likely serve you well here.

That said, if you really want to keep the script-in-memory-hash thing going for some reason, and really do want to simply feed the data from your in-memory hash to all comers, you have your work cut out for you:

Now -- that would be a fun project, and you'd learn a ton of potentially useful stuff. But it will take time, and time is money.

You may have to invest time to learn DBIand  SQLite, but you don't have to build much enginery to make it work, so I would hazard a guess that it will take 1-4% of the effort needed to build all the machinery for the service-communication approach.

Not to mention that if you build your own framework, you will also then need to maintain it.

Unless you have a fairly strong reason to the contrary, I think the combination of SQLiteand DBIis going to be your friend on this one.


In reply to Re: Help with designing a program. by marinersk
in thread Help with designing a program. by gbmaster

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.