Toggle Menu

Datastax

Examples

Search through our library of code and applications to help you get things done faster with DataStax and Apache Cassandra.

Visit us on Github

Example of the Week

A comparison of Java frameworks

A comparison of Java frameworks

This week’s example contains a microbenchmark that collects the compile time, startup time, memory usage, and load time of simple “Hello World”-like apps in Spring, Quarkus, Micronaut, and Helidon.

Go To GitHub

Our Most Popular Examples

Spring Data Cassandra REST API

This application uses Spring Data Cassandra and DataStax Astra to build a REST API for a backend service that interacts with products and orders.

Next.js/Astra Starter

A sample Next.js, DataStax Astra starter app.

Microservices with Spring, Kubernetes, and Cassandra

This example contains sample inventory microservices to demonstrate how to use Spring, Kubernetes and Cassandra together a single stack.

Filter by

  • Products
  • Language
Clear All

Getting Started with Apache Cassandra™ and C# using DataStax Astra

Example REST API in C# showing how to connect to and query DataStax Astra databases

By: Dave Bechberger

Last updated: Jun 9, 2020

Getting Started with DataStax Astra - UI

 This front end is meant to be used with one of the following backends Getting Started with DataStax Astra backends: Java, Python, C#.

By: Chris Splinter

Last updated: Jun 9, 2020

Stock Tick Demo Application

 A basic Python stock tick demo application using DataStax Enterprise.

By: Peyton Casper

Last updated: May 28, 2020

Java Driver Code Samples

StandAlone classes illustrating portion of DataStax Java Driver in version 3.x then 4.x

By: Cédrick Lunven, Eric Ramirez

Last updated: May 1, 2020

Data Center Latency Checker

This a simple program that can be run to check the difference in latencies between 2 data centers and calculates an ongoing average.

By: Patrick Callaghan

Last updated: Apr 27, 2020

Geospatial Demo

This is short demo which shows how to find all the UK postcode within a certain area. This area can be a postcode or a longitude/latitude combination.

By: Patrick Callaghan

Last updated: Apr 26, 2020

Banking-IoT Demo

Banking IoT example of processing millions of transactions.

By: Patrick Callaghan

Last updated: Apr 24, 2020

Vehicle Tracking Application

This demo traces moving vehicles as they pass through geohash tiles. It also keeps track of a vehicle movements on a day to day basis. 

By: Patrick Callaghan

Last updated: Apr 24, 2020

IoT Cassandra Demo Application

A small demo to show how to insert meter readings for a smart reader, using Cassandra and the DataStax Java Driver.

By: Patrick Callaghan

Last updated: Apr 21, 2020

Example Projects for using DSE Analytics

Example projects for using Spark and Cassandra With DSE Analytics

By: Jaroslaw Grabowski, Russell Spitzer

Last updated: Jan 16, 2020

DataStax C/C++ Driver for Apache Cassandra® Quickstart

A basic demo CRUD application using the DataStax C/C++ driver 

By: Rebecca Mills

Last updated: Nov 20, 2019

Switch connection between on-prem and cloud in Java

Configure application at runtime to connect to an on-prem or cloud database using the Java DataStax Driver

By: Dave Bechberger

Last updated: Nov 14, 2019