Skip to content

ddd-cqrs-es/NStore

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

NStore

Project Badge

Introduction

This project is a playground for experimenting with .net Standard, async and a simple API for a Sql/NoSql backed EventStore.

Heavily inspired from NEventStore, rewritten from scratch to be simple to learn and highly extensible.


Quickstart

Streams API

var persister = CreateYourStore();
var streams = new StreamsFactory(persister);

// Write to stream
var stream = streams.Open("Stream_1");
await stream.AppendAsync(new { data = "Hello world!" });

// Read from stream
await stream.ReadAsync(data => {
    Console.WriteLine($"  index {data.Index} => {data.Payload}");
    return Task.FromResult(true);
});

Raw API

var persister = CreateYourStore(); 
await persister.AppendAsync("Stream_1", new { data = "Hello world!" });

Learn

The source comes with a Sample App to illustrate some basic stuff you can do.

Follow this project

Roadmap

About

Opinionated eventsourcing library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 96.8%
  • PowerShell 1.6%
  • Other 1.6%