# Apache Cassandra 4.0 Beta Released

[Blog](/blog/)&gt;[Technology](/blog/category/technical/)&gt;Apache Cassandra 4.0 Beta Released 

Apache Cassandra 4.0 Beta Released
==================================

July 21, 2020 | By [ Ben Bromhead](https://www.instaclustr.com/blog/author/benb/)

 

 

 

 



   [ ](https://x.com/intent/tweet?text=Apache%20Cassandra%204.0%20Beta%20Released&url=https://www.instaclustr.com/blog/apache-cassandra-4-0-beta-released/) [ ](https://www.linkedin.com/shareArticle?mini=true&url=https://www.instaclustr.com/blog/apache-cassandra-4-0-beta-released/&title=&summary=Apache%20Cassandra%204.0%20Beta%20Released&source=) 

The beta release of Apache Cassandra 4.0 is finally here, it’s been two years in the making. We’ve had a [preview release available to customers since March](/blog/instaclustr-announces-preview-release-of-apache-cassandra-4-0-on-instaclustr-managed-platform/) for testing. A wide range of improvements has been made.

Stability
---------

The explicit goal of this release has been to be “the most stable major release ever” to accelerate adoption within the release cycle, [which I blogged about in January](/blog/apache-cassandra-4-0-stability-and-testing/). For this release, a series of new testing frameworks were implemented focusing on stability, and performance, which have paid off handsomely. The feeling of the team at Instaclustr is that we have never been more confident about a release (and we’ve seen quite a few!)

Performance
-----------

This release integrates the async event-driven networking code from [Netty](https://netty.io/) for communication between nodes. [I blogged about Netty in February](/blog/) but it’s worth reiterating what’s been achieved with this upgrade. It has enabled Cassandra 4.0 to have a single thread pool for all connections to other nodes instead of maintaining N threads per peer which were cramping performance by causing lots of context switching. It has also facilitated zero copy streaming for SStables which now goes [x5 times faster than before](https://cassandra.apache.org/blog/2019/04/09/benchmarking_streaming.html).

This complete overhaul of the networking infrastructure has delivered some serious gains.

- Tail end latency has been reduced by 40%+ in P99s in initial testing
- Node recovery time has been [vastly reduced](https://issues.apache.org/jira/browse/CASSANDRA-14765)
- Scaling large clusters is easier and [faster](https://issues.apache.org/jira/browse/CASSANDRA-15175)

Auditing and Observability
--------------------------

Cassandra 4.0 introduces a powerful new set of enterprise class audit capabilities that I covered [here in March](/blog/apache-cassandra-4-0-audit/). These help Cassandra operators meet their SOX and PCI requirements with a robust high level interface. Audit logging saves to the node, outside of the database, with configurable log rollover. Audit logs can be configured to attend to particular keyspaces, commands, or users and they can be inspected with the auditlogviewer utility.

[Full Query Logging](https://cassandra.apache.org/doc/latest/new/fqllogging.html) is also supported and the fqltool allows inspection of these logs.

Virtual Tables
--------------

Virtual tables, which [I covered here in February](/blog/apache-cassandra-4-0-virtual-tables/), enable a series of metrics to be pulled from a node via CQL from read-only tables. This is a more elegant mechanism than JMX access as it avoids the additional configuration required. JMX access is not going anywhere soon, but this presents a really solid improvement to a number of metric monitoring tasks.

Community
---------

Our community is our most powerful feature in all our releases and I can’t think of a better validation of open source under The Apache Foundation community model than this release. I just want to take this opportunity to congratulate and thank everyone in the community who have taken both Cassandra and its release processes to the next level with this beta release.

As always, you can spin up a [free trial of Cassandra](https://console2.instaclustr.com/) on our platform.

 



 

 ![mail icon]()#### Get the latest articles for open sourceIn your inbox

 <a class="btn btn-primary btn-popup text-dark" href="">Sign up now</a> 

 

 

 

  ### Related content

 [ Apache Cassandra 4.0 Beta Released 

 

 The beta release of Apache Cassandra 4.0 is finally here, it’s been two years in the making. We’ve had a preview release available... 

 

 

 

 

 

 

 ](https://www.instaclustr.com/blog/apache-cassandra-4-0-beta-released/) 

 [ Diagnostic Events in Apache Cassandra® 4.0 

 

 Apache Cassandra 4.0 comes with a host of new features to get excited about, along with serious improvements in performance and ... 

 

 

 

 

 

 

 ](https://www.instaclustr.com/blog/diagnostic-events-in-cassandra-4-0/) 

 [ AWS Lambda with Managed Cassandra - Part 1: Let's Build a POC 

 

 Part 1 of the three-part blog series where Instaclustr investigates the pros and cons of using AWS Lambda with Cassandra by ... 

 

 

 

 

 

 

 ](https://www.instaclustr.com/blog/aws-lambda-managed-cassandra-part-1/) 

 

  <a class="close-modal" href="">×</a>Sign upto ourNewsletter
-----------------------
