Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Shared Memory Cache or Database?

by Fletch (Bishop)
on Dec 07, 2020 at 16:57 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11124787]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (9)
As of 2024-04-18 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found