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
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).
- Key Features
- NuGet Packages
- Getting Started
- Usage
- Components
- Contributing
- Support and Contact
- Authors
- License
- About IT#Pro
- 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.
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.
- .NET 9.0 SDK or later: download .NET 9.0
- Docker or Kubernetes for the infrastructure you use (RabbitMQ, MongoDB, PostgreSQL, Redis, Consul, Jaeger…)
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.LoggingThen, for example, messaging, authentication and tracing:
dotnet add package Paralax.MessageBrokers.RabbitMQ
dotnet add package Paralax.Auth
dotnet add package Paralax.Tracing.JaegerOr with a PackageReference (use the latest version shown on NuGet):
<PackageReference Include="Paralax" Version="1.0.*" />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();AddParalax() creates the IParalaxBuilder that every other package extends, reads the app options (service name, version, banner) and runs startup initializers on UseParalax().
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.
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.
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).
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();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.
Structured logging with correlation context, OpenTelemetry and Jaeger distributed tracing (also for RabbitMQ messages), Prometheus and App Metrics, and health checks.
Ready-to-use MongoDB, PostgreSQL and Redis integrations.
Service registration and discovery with Consul, and load balancing with Fabio.
Swagger (Paralax.Docs.Swagger, Paralax.WebApi.Swagger) and Scalar (Paralax.WebApi.Scalar).
Contributions are welcome. See the Contributing Guide.
Bugs and feature requests: GitHub Issues.
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:
- [email protected]
- [email protected] (Andrii Voznesenskyi)
Website: itsharppro.com NuGet: nuget.org/profiles/itsharppro
| 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] |
- Andrii Voznesenskyi (SaintAngeLs), author and lead developer of Paralax, Warsaw, Poland: https://github.com/SaintAngeLs
- IT#Pro Software Development (itsharppro), the GitHub organization behind Paralax: https://github.com/itsharppro
- DevITSharpPRO, the IT#Pro team account: https://github.com/DevITSharpPRO
- Paralax repository: https://github.com/itsharppro/Paralax
- Paralax on NuGet (itsharppro): https://www.nuget.org/profiles/itsharppro
The Paralax Framework is licensed under the Apache-2.0 License. See the LICENSE file.
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.
