VOOZH about

URL: https://www.nuget.org/packages/CloudShapes.Data/

⇱ NuGet Gallery | CloudShapes.Data 0.1.0




CloudShapes.Data 0.1.0

Prefix Reserved
dotnet add package CloudShapes.Data --version 0.1.0
 
 
NuGet\Install-Package CloudShapes.Data -Version 0.1.0
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CloudShapes.Data" Version="0.1.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CloudShapes.Data" Version="0.1.0" />
 
Directory.Packages.props
<PackageReference Include="CloudShapes.Data" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CloudShapes.Data --version 0.1.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CloudShapes.Data, 0.1.0"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CloudShapes.Data@0.1.0
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CloudShapes.Data&version=0.1.0
 
Install as a Cake Addin
#tool nuget:?package=CloudShapes.Data&version=0.1.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

<p align="center"> <img src="assets/logotype-blue.png" height="250px" alt="Logo"/> </p> <hr>

Event-Driven Projections Database

Cloud Shapes is an event-driven database designed to dynamically generate, update, and delete projections based on CloudEvents. It supports real-time relationship management, embedded data synchronization, and write-time updates for efficient, event-driven materialization of data.


🔹 Key Features

Projection-Based Data Model – Store and query data as projections, materialized from events.
Event-Driven Writes – Automatically create, update, or delete projections when CloudEvents occur.
Schema-Enforced Storage – Validate projection states using JSON Schema (JsonSchema).
Real-Time Relationship Updates – Maintain data consistency with embedded relationships.
Write-Time Data Embedding – Merge related projection data at write time for optimized queries.
Indexing & Querying – Define indexes for fast lookups on projection properties.
Multi-Tenant & Scalable – Designed for distributed event-driven architectures.


🔄 How Cloud Shapes Works

  1. Define a ProjectionType

    • Each projection type is defined by a schema (JsonSchema).
    • Triggers determine when new projections should be created from incoming CloudEvents.
  2. CloudEvents Ingestion

    • Events trigger projections updates, ensuring real-time data synchronization.
  3. Write-Time Relationship Management

    • Projections can embed related projection data and update it dynamically when relationships change.
  4. Indexing & Querying

    • Projections can be indexed for efficient lookups and optimized queries.

🛠 Example: Defining a ProjectionType

A projection type defines how CloudEvents affect projections:

name: Order
description: >
 The `Order` projection represents an **order entity**, materialized from CloudEvents. 
 It includes **embedded customer and item data** to ensure real-time consistency and optimized query performance.
schema:
 type: object
indexes:
 - name: store
 fields: [ store ]
 unique: false
 descending: false
 text: false
triggers:
 create:
 - event:
 type: io.petstore.events.order.created.v1
 correlation:
 attribute: subject
 state: '${ .data }'
 update:
 - event:
 type: io.petstore.events.order.updated.v1
 correlation:
 attribute: subject
 state: '${ .data }'
 delete:
 - event:
 type: io.petstore.events.order.deleted.v1
 correlation:
 attribute: subject
relationships:
 - type: one-to-one
 target: Customer
 key: customerId
 path: customer
 - type: one-to-many
 target: OrderItem
 key: orderId
 path: items

📌 Example: Order Projection Structure

When an order is processed, the system materializes the following JSON projection:

```json
{
 "id": "order-123",
 "customer": {
 "id": "customer-456",
 "name": "Alice Smith"
 },
 "items": [
 { "id": "item-1", "product": "Laptop", "price": 1000 },
 { "id": "item-2", "product": "Mouse", "price": 50 }
 ],
 "status": "Processing"
}
```

🔹 Embedded relationships (customer, items) ensure real-time updates when related projections change.


🔄 Real-Time Updates & Event Processing

Cloud Shapes dynamically updates projections when CloudEvents are received:

  • order.created → Creates a new projection
  • order.updated → Modifies the projection
  • order.deleted → Removes the projection

🔹 Embedded relationships are updated dynamically at write time, ensuring consistency.


🚀 Why Use Cloud Shapes?

Fully Event-Driven – No manual updates, all changes are event-driven.
Real-Time Consistency – Embedded data updates instantly on related projection changes.
Write-Time Optimizations – Data embedding reduces query-time overhead.
Schema-Enforced Validation – Ensures data integrity using JSON Schema (JsonSchema).
Scalable & Distributed – Built for high-throughput event-driven systems.


📥 Getting Started

1️⃣ Clone the Cloud Shapes repository:

git clone https://github.com/neuroglia-io/cloud-shapes.git

2️⃣ Start Cloud Shapes using Docker:

docker-compose -f deployments/docker-compose/docker-compose.yml up -d

3️⃣ Define Projection Types and their Triggers

4️⃣ Start ingesting CloudEvents into the system.

5️⃣ Query real-time projections with pre-embedded data.


📚 Learn More


📜 License

Cloud Shapes is open-source and available under the .


🚀 Cloud Shapes: Transforming Events into Real-Time Projections

Product Versions Compatible and additional computed target framework versions.
.NET net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on CloudShapes.Data:

Package Downloads
CloudShapes.Integration

Contains the models and services used to integrate the Cloud Shapes API

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 271 2/13/2025