Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Shared Memory Cache or Database?

by Fletch (Bishop)
on Dec 07, 2020 at 16:57 UTC ( #11124787=note: print w/replies, xml ) Need Help??

in reply to Shared Memory Cache or Database?

If you're not looking for an SQL-y database but want something that maps more directly to an in-memory hash Redis probably is worth looking at. Slightly fancier / more featureful might be Riak (caveat I haven't looked at it in ages so I'm less sure what its performance characteristics are these days).

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: Shared Memory Cache or Database?
by NetWallah (Canon) on Dec 07, 2020 at 17:38 UTC
    Yes - Redis is the first thing that came to my mind as well.

    You can use something like Tie::Redis to put this in more familiar perl ground.

                    "Imaginary friends are a sign of a mental disorder if they cause distress, including antisocial behavior. Religion frequently meets that description"

Re^2: Shared Memory Cache or Database?
by perlfan (Vicar) on Dec 07, 2020 at 19:35 UTC
    I second the suggestion of Redis. If you need to federate the shared memory over multiple logically seperated banks of memory you can use memcached*. If you're on a large shared memory NUMA machine and want to do true shared memory via light weight threads, the scripting language Qore may present some interesting options for you. It's very perlish.

    * updated

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2022-05-20 11:35 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (73 votes). Check out past polls.