Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Shared Memory Cache or Database?

by zapoi (Novice)
on Dec 07, 2020 at 16:40 UTC ( #11124783=note: print w/replies, xml ) Need Help??


in reply to Re: Shared Memory Cache or Database?
in thread Shared Memory Cache or Database?

Hi Corion,

Indeed the processes will be running on one machine.

I considered that approach but I'm not sure that I could efficiently code it in this way, as there will be varying number of brokers depending on the market, and some might not be publishing prices all the time, it also will make reusing the memory up once a market falls out of interest challenging. I can see myself getting in all kinds of hashes of index values to try and keep track of where the current and previous data snaps are stored.

Please let me know if I've completely misunderstood and my concerns are ill founded.

Thanks

Replies are listed 'Best First'.
Re^3: Shared Memory Cache or Database?
by Corion (Patriarch) on Dec 07, 2020 at 16:55 UTC

    Yes, if brokers are somewhat dynamic, and you can't use the same set of brokers for all markets (etc.), calculating the index where to store a price becomes quite cumbersome/error-prone.

    Reusing the memory allocated to a market could be done on a time slice, but all of that depends on how dynamic the data really is.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2022-05-20 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (73 votes). Check out past polls.

    Notices?