Skip to content

Sample Applications

Sample applications demonstrating the Multicloud DB SDK's portable API are maintained in a separate repository:

microsoft/multiclouddb-sdk-for-java-samples

Each sample runs against Azure Cosmos DB, Amazon DynamoDB, or Google Cloud Spanner — switch providers by changing a single properties file.


Available Samples

Portable CRUD + Query

A minimal end-to-end sample showing CRUD operations and the portable query DSL against any provider.

View guide →

TODO App

A simple CRUD web application with a browser-based UI for creating, reading, updating, and deleting TODO items.

Port: 8080

View guide →

Risk Analysis Platform

A multi-tenant portfolio risk analytics platform with an executive dashboard. Demonstrates database-per-tenant isolation, partition-scoped queries, and auto-provisioning.

Port: 8090

View guide →


Quick Start

Clone the samples repository and build:

git clone https://github.com/microsoft/multiclouddb-sdk-for-java-samples.git
cd multiclouddb-sdk-for-java-samples
mvn clean install -DskipTests

Then see the individual guides above for per-sample instructions.


What the Samples Demonstrate

Feature Portable CRUD + Query TODO App Risk Platform
Basic CRUD operations ✅ ✅ ✅
Portable query DSL ✅ ✅ ✅
Partition-scoped queries — — ✅
Database-per-tenant isolation — — ✅
Auto-provisioning (provisionSchema) — — ✅
Provider portability (zero code changes) ✅ ✅ ✅
Embedded HTTP server + browser UI — ✅ ✅
Cosmos DB support ✅ ✅ ✅
DynamoDB support ✅ ✅ ✅
Spanner support ✅ ✅ —