All Projects → endel → memshared

endel / memshared

Licence: MIT license
Redis-like in-memory database for NodeJS clustered applications

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to memshared

Coinboot
A framework for diskless computing
Stars: ✭ 131 (+385.19%)
Mutual labels:  cluster, in-memory
Common
SQL FineBuild provides 1-click install and best-practice configuration on Windows of SQL Server 2019 through to SQL Server 2005
Stars: ✭ 32 (+18.52%)
Mutual labels:  cluster
Multi-Node-TimescaleDB
The multi-node setup of TimescaleDB 🐯🐯🐯 🐘 🐯🐯🐯
Stars: ✭ 42 (+55.56%)
Mutual labels:  cluster
terraform-aws-eks-workers
Terraform module to provision an AWS AutoScaling Group, IAM Role, and Security Group for EKS Workers
Stars: ✭ 82 (+203.7%)
Mutual labels:  cluster
neth-proxy
Stratum <-> Stratum Proxy and optimizer for ethminer
Stars: ✭ 35 (+29.63%)
Mutual labels:  cluster
urb-k8s
Kubernetes adapter for Universal Resource Broker
Stars: ✭ 19 (-29.63%)
Mutual labels:  cluster
Magento-2-aws-cluster-terraform
Magento 2 AWS autoscaling cluster with Terraform and Packer or ImageBuilder. Adobe Commerce Cloud alternative. The best ecommerce infrastructure. Drive more sales online. Transparent billing. Developer-friendly. No hidden bottlenecks.
Stars: ✭ 107 (+296.3%)
Mutual labels:  cluster
virgo
Crowdsourced fuzzing cluster. 🚀
Stars: ✭ 21 (-22.22%)
Mutual labels:  cluster
nixos-raspberry-pi-cluster
A user-guide to create a Raspberry Pi (3B+, 4) cluster under NixOS and managed by NixOps
Stars: ✭ 69 (+155.56%)
Mutual labels:  cluster
clusterhat-image
Converts Raspbian/Raspberry Pi OS images to support Cluster HAT
Stars: ✭ 71 (+162.96%)
Mutual labels:  cluster
k3d-action
A GitHub Action to run lightweight ephemeral Kubernetes clusters during workflow. Fundamental advantage of this action is a full customization of embedded k3s clusters. In addition, it provides a private image registry and multi-cluster support.
Stars: ✭ 137 (+407.41%)
Mutual labels:  cluster
soa-checklist
Microservice Oriented Architecture checklist
Stars: ✭ 92 (+240.74%)
Mutual labels:  cluster
meteor-cluster
worker pool for meteor using node js native `cluster` module
Stars: ✭ 18 (-33.33%)
Mutual labels:  cluster
caddy-tlsconsul
🔒 Consul K/V storage for Caddy Web Server / Certmagic TLS data
Stars: ✭ 89 (+229.63%)
Mutual labels:  cluster
traefik-cluster-ecs
This is a tutorial on how to deploy a Traefik Load Balancer in AWS using CloudFormation to load balancer development ECS tasks using hosts (FQDN).
Stars: ✭ 62 (+129.63%)
Mutual labels:  cluster
node-codis
Codis client for Node.js.
Stars: ✭ 18 (-33.33%)
Mutual labels:  cluster
ha cluster exporter
Prometheus exporter for Pacemaker based Linux HA clusters
Stars: ✭ 63 (+133.33%)
Mutual labels:  cluster
docker-volume-hetzner
Docker Volume Plugin for accessing Hetzner Cloud Volumes
Stars: ✭ 81 (+200%)
Mutual labels:  cluster
go-time-series
Time series implementation in Go
Stars: ✭ 27 (+0%)
Mutual labels:  in-memory
WatsonCluster
A simple C# class using Watson TCP to enable a one-to-one high availability cluster.
Stars: ✭ 18 (-33.33%)
Mutual labels:  cluster

memshared

Build Status

Redis-like in-memory database for NodeJS clustered applications.

Why?

Adding Redis as a dependency will inevitably increase the complexity to your application and your environment. Use this library if you want to keep a simple architecture while at the same time allow you to migrate to a real in-memory database when you feel the need for it.

Usage

import * as cluster from "cluster";
import * as memshared from "memshared";

if (cluster.isMaster) {
  memshared.setup({
    // setup your initial data
  });

  cluster.fork();

} else {
  memshared.set('foo', 'bar');

  memshared.get('foo', function (err, result) {
    console.log(result);
  });

  memshared.del('key');

  memshared.sadd('set', 1);
}

Usage with PM2

You'll need a script to start PM2. See this example.

node pm2/pm2.js

Missing commands

There are a lot of commands missing. Feel free to pick one of them and send a pull-request: #7

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].