Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Shared Memory Cache or Database?

by Fletch (Chancellor)
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2021-04-16 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?