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

Object Mapper in C#

Basic example of the C# DataStax Driver Object Mapper with Cassandra

By: Dave Bechberger

Last updated: Nov 13, 2019

LINQ with Cassandra

Basic example of using LINQ with Cassandra and the C# DataStax Driver

By: Dave Bechberger

Last updated: Nov 13, 2019

Prepared Statements in Node.js

Query Cassandra using prepared statements and the Node.js DataStax Driver

By: Dave Bechberger

Last updated: Nov 8, 2019

Loading Data into Astra

Load data from CSV or Cassandra into Astra with the DataStax Bulk Loader

By: Brian Hess, Dave Bechberger

Last updated: Nov 8, 2019

Switch connection between on-prem and cloud in C#

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

By: Dave Bechberger

Last updated: Nov 7, 2019

Forward Pagination in a Stateless REST service

Forward paging of results from a REST endpoint using the Java DataStax Driver

By: Tomasz Lelek, Carlos Diaz

Last updated: Nov 6, 2019

Random Pagination in a Stateless REST service

Random paging of results from a REST endpoint using the Java DataStax Driver

By: Tomasz Lelek, Carlos Diaz

Last updated: Nov 6, 2019

Gremlin Reference Guides

Find the available Gremlin steps for Gremlin OLAP, Gremlin OLTP, and DseGraphFrames across DataStax Enterprise versions

By: Dave Bechberger

Last updated: Nov 5, 2019

Graph Traversal Builder in Java

Simplify construction of complex graph traversals by implementing a traversal builder pattern in Java

By: Daniel Kuppitz

Last updated: Nov 5, 2019

Switch connection between on-prem and cloud in Node.js

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

By: Dave Bechberger

Last updated: Nov 1, 2019

Concurrent Requests in C#

Execute multiple concurrent requests asynchronously with Cassandra using the C# DataStax Driver

By: João Reis

Last updated: Oct 31, 2019

Paging Graph Results in Java

Page result sets from a DataStax Graph traversal using the Java DataStax Driver

By: Dave Bechberger

Last updated: Oct 30, 2019