New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aedes-persistence-cassandra

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aedes-persistence-cassandra - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

package.json
{
"name": "aedes-persistence-cassandra",
"version": "0.2.0",
"version": "0.2.1",
"description": "Cassandra persistence for Aedes",

@@ -5,0 +5,0 @@ "main": "persistence-cassandra.js",

@@ -93,3 +93,3 @@ "use strict";

const defaultOpts = { contactPoints: ["localhost:9042"], localDataCenter: "datacenter1", keyspace: "aedes" };
const cassandraOpts = that._opts.cassandra ? Object.assign(defaultOpts, that._opts.kafka) : defaultOpts;
const cassandraOpts = that._opts.cassandra ? Object.assign(defaultOpts, that._opts.cassandra) : defaultOpts;

@@ -96,0 +96,0 @@ that._shutdownClient = true;

@@ -7,4 +7,16 @@ # aedes-persistence-cassandra

_**NOTE**: preliminary version, WIP._
## Disclaimer
Be sure to understand applicability and limitations before using this package in production.
In most cases [aedes-persistence-mongodb](https://github.com/moscajs/aedes-persistence-mongodb) should be considered a better alternative to this.
Please understand that Cassandra is not suited for implementing queues as in most cases this results in reading lots of tombstones ([cassandra-anti-patterns-queues-and-queue-datasets](https://www.datastax.com/blog/cassandra-anti-patterns-queues-and-queue-datasets)).
This package is suitable when:
* You have a small sets of subscriptions with low traffic
* You already have a deployed Cassandra cluster and can't afford to deploy another persistence solution (e.g. MongoDB or Redis)
* You are regularly performing compactions/repair on the used keyspace
## Install

@@ -11,0 +23,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc