Skip to content
itsharpproPublic

About

Paralax is a modular, open-source .NET framework designed for building and managing distributed microservices. Optimized for .NET 9.0, Paralax provides essential components for scalable, resilient service architectures, including support for CQRS, gRPC, authentication, message brokering, logging, and cloud-native integrations.

Topics

Resources

Contributing

Stars

10 stars

Watchers

1 watching

Forks

Repository files navigation

Paralax Logo

Paralax Framework

.NET 9.0 Build Status NuGet Version NuGet Downloads Coverage Status License

Founded, developed and maintained by the IT#Pro Software Development team.

Author and lead developer: Andrii Voznesenskyi (@SaintAngeLs on GitHub)

itsharppro.com · [email protected] · NuGet · GitHub: itsharppro, DevITSharpPRO, SaintAngeLs


Overview

The Paralax Framework is a modern, modular, open-source .NET framework for building microservice architectures. It provides the building blocks a service needs: a common application builder, CQRS, messaging, HTTP and Web API, authentication, security, persistence, service discovery, observability and API documentation. Paralax targets .NET 9.0 and fits cloud-native environments (Docker, Kubernetes) well.

Each part is a separate NuGet package, so a service takes only what it uses.

Paralax was founded and is developed and maintained by the IT#Pro Software Development team (itsharppro.com). Its author and lead developer is Andrii Voznesenskyi (SaintAngeLs).


Table of Contents


Key Features

  • Modular: one package per concern, all wired through one IParalaxBuilder.
  • Security: encryption, hashing, signing, JWT and certificate authentication, HashiCorp Vault secrets.
  • CQRS and event sourcing: commands, queries, events, in-memory dispatchers, handler logging and event sourcing.
  • Messaging: message broker abstractions, RabbitMQ integration, CQRS over the broker, and the Outbox pattern (with a MongoDB store).
  • HTTP, Web API and gRPC: HTTP client, minimal Web API endpoints, CQRS endpoints, gRPC with Protobuf.
  • Observability: structured logging, OpenTelemetry, Jaeger tracing, Prometheus and App Metrics, health checks.
  • Persistence: MongoDB, PostgreSQL and Redis.
  • Service discovery and load balancing: Consul and Fabio.
  • API documentation: Swagger and Scalar.

NuGet Packages

All Paralax packages are published on NuGet.org by the itsharppro account: nuget.org/profiles/itsharppro

Area Package Description
Core Paralax Core builder (AddParalax), application options and startup initializers
Core Paralax.ServiceDefaults OpenTelemetry, discovery and health checks defaults
Auth Paralax.Auth JWT authentication, token issuing, validation and revocation
Auth Paralax.Auth.Distributed Distributed access token validation
Security Paralax.Security Encryption, hashing and signing
Security Paralax.Secrets.Vault HashiCorp Vault secrets
CQRS Paralax.CQRS.Commands Commands, handlers and dispatcher
CQRS Paralax.CQRS.Queries Queries, handlers and dispatcher
CQRS Paralax.CQRS.Events Events, handlers and dispatcher
CQRS Paralax.CQRS.EventSourcing Event sourcing
CQRS Paralax.CQRS.Logging Logging for command and event handlers
CQRS Paralax.CQRS.WebApi CQRS dispatcher endpoints for Web APIs
Messaging Paralax.MessageBrokers Message broker abstractions
Messaging Paralax.MessageBrokers.RabbitMQ RabbitMQ integration
Messaging Paralax.MessageBrokers.CQRS CQRS over the message broker
Messaging Paralax.MessageBrokers.Outbox Outbox pattern
Messaging Paralax.MessageBrokers.Outbox.Mongo MongoDB store for the Outbox
HTTP / API Paralax.HTTP HTTP client
HTTP / API Paralax.WebApi Web API endpoints and error handling
HTTP / API Paralax.WebApi.Security Certificate authentication for Web APIs
HTTP / API Paralax.WebApi.Swagger Swagger for Paralax Web APIs
HTTP / API Paralax.WebApi.Scalar Scalar for Paralax Web APIs
HTTP / API Paralax.Docs.Swagger Swagger API documentation
HTTP / API Paralax.gRPC gRPC services and clients
HTTP / API Paralax.gRPC.Protobuf Protobuf support for gRPC
Observability Paralax.Logging Structured logging and correlation context
Observability Paralax.Tracing.Jaeger Jaeger distributed tracing
Observability Paralax.Tracing.Jaeger.RabbitMQ Jaeger tracing for RabbitMQ messages
Observability Paralax.Metrics.Prometheus Prometheus metrics
Observability Paralax.Metrics.AppMetrics App Metrics
Observability Paralax.Diagnostics.HealthChecks Health checks
Persistence Paralax.Persistence.MongoDB MongoDB
Persistence Paralax.Persistence.Postgres PostgreSQL
Persistence Paralax.Persistence.Redis Redis
Discovery Paralax.Discovery.Consul Consul service discovery
Discovery Paralax.LoadBalancing.Fabio Fabio load balancing

Paralax.Docs.Scalar and Paralax.OpenTelemetry are in this repository but are not yet published on NuGet.


Getting Started

Prerequisites

  • .NET 9.0 SDK or later: download .NET 9.0
  • Docker or Kubernetes for the infrastructure you use (RabbitMQ, MongoDB, PostgreSQL, Redis, Consul, Jaeger…)

Installation

Install the core package and the parts you need from NuGet:

dotnet add package Paralax
dotnet add package Paralax.WebApi
dotnet add package Paralax.CQRS.Commands
dotnet add package Paralax.CQRS.Queries
dotnet add package Paralax.CQRS.Events
dotnet add package Paralax.Logging

Then, for example, messaging, authentication and tracing:

dotnet add package Paralax.MessageBrokers.RabbitMQ
dotnet add package Paralax.Auth
dotnet add package Paralax.Tracing.Jaeger

Or with a PackageReference (use the latest version shown on NuGet):

<PackageReference Include="Paralax" Version="1.0.*" />

Usage

Every component plugs into the builder returned by AddParalax(). Each Add… call reads its options from appsettings.json (section names are in each package's options class).

var builder = WebApplication.CreateBuilder(args);

builder.Host.UseLogging();                       // Paralax.Logging

builder.Services
    .AddParalax(configuration: builder.Configuration)
    .AddWebApi()                                 // Paralax.WebApi
    .AddCommandHandlers()                        // Paralax.CQRS.Commands
    .AddInMemoryCommandDispatcher()
    .AddQueryHandlers()                          // Paralax.CQRS.Queries
    .AddInMemoryQueryDispatcher()
    .AddEventHandlers()                          // Paralax.CQRS.Events
    .AddInMemoryEventDispatcher()
    .AddJwt()                                    // Paralax.Auth
    .AddRabbitMq()                               // Paralax.MessageBrokers.RabbitMQ
    .AddJaeger()                                 // Paralax.Tracing.Jaeger
    .Build();

var app = builder.Build();

app.UseParalax()
   .UseErrorHandler()
   .UseJaeger();

app.UseRabbitMq();                               // returns IBusSubscriber: subscribe to messages here

app.Run();

Components

Paralax (core)

AddParalax() creates the IParalaxBuilder that every other package extends, reads the app options (service name, version, banner) and runs startup initializers on UseParalax().

Paralax.Auth

JWT authentication (HMAC or X.509 certificate keys), token issuing and validation, and token revocation. See src/Paralax.Auth/README.md. Paralax.Auth.Distributed validates access tokens across services.

Paralax.Security

Encryption, hashing and signing (IEncryptor, IHasher, ISigner). See src/Paralax.Security/src/Paralax.Security/README.md. Paralax.Secrets.Vault loads configuration and secrets from HashiCorp Vault.

Paralax.CQRS

Command-Query Responsibility Segregation in separate packages:

  • Commands (Paralax.CQRS.Commands): write operations and their handlers.
  • Queries (Paralax.CQRS.Queries): read operations and their handlers.
  • Events (Paralax.CQRS.Events): events and their handlers.
  • Event sourcing (Paralax.CQRS.EventSourcing), handler logging (Paralax.CQRS.Logging) and Web API endpoints for the dispatchers (Paralax.CQRS.WebApi).

Paralax.MessageBrokers

Asynchronous communication between services: broker abstractions, RabbitMQ integration, CQRS commands and events over the broker, and the Outbox pattern for reliable delivery (with a MongoDB store).

builder.Services
    .AddParalax(configuration: builder.Configuration)
    .AddRabbitMq()          // reads the "rabbitmq" section
    .Build();

Paralax.HTTP, Paralax.WebApi and Paralax.gRPC

An HTTP client for service-to-service calls (with Consul and Fabio clients in the discovery packages), lightweight Web API endpoints with error handling, certificate authentication for Web APIs, and gRPC services and clients with Protobuf.

Paralax.Logging, Tracing and Metrics

Structured logging with correlation context, OpenTelemetry and Jaeger distributed tracing (also for RabbitMQ messages), Prometheus and App Metrics, and health checks.

Paralax.Persistence

Ready-to-use MongoDB, PostgreSQL and Redis integrations.

Paralax.Discovery and LoadBalancing

Service registration and discovery with Consul, and load balancing with Fabio.

API documentation

Swagger (Paralax.Docs.Swagger, Paralax.WebApi.Swagger) and Scalar (Paralax.WebApi.Scalar).


Contributing

Contributions are welcome. See the Contributing Guide.

Bugs and feature requests: GitHub Issues.


Support and Contact

Paralax is developed and maintained by the IT#Pro Software Development team, led by Andrii Voznesenskyi (SaintAngeLs).

Please send all inquiries and requests (support, consulting, partnerships, commercial use, security reports) to:

Website: itsharppro.com NuGet: nuget.org/profiles/itsharppro


Authors

IT#Pro Software Development Founder, developer and maintainer: itsharppro.com, [email protected], GitHub organization itsharppro and account DevITSharpPRO
Andrii Voznesenskyi Author and lead developer: GitHub @SaintAngeLs, [email protected]

Find us on GitHub


License

The Paralax Framework is licensed under the Apache-2.0 License. See the LICENSE file.


About IT#Pro

IT#Pro Software Development (itsharppro.com, GitHub itsharppro) is the founder, developer and maintainer of the Paralax Framework. The framework was created and is led by Andrii Voznesenskyi (SaintAngeLs). We thank every contributor who helps improve the framework.

About

Paralax is a modular, open-source .NET framework designed for building and managing distributed microservices. Optimized for .NET 9.0, Paralax provides essential components for scalable, resilient service architectures, including support for CQRS, gRPC, authentication, message brokering, logging, and cloud-native integrations.

Topics

Resources

Contributing

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages