Sindika.AspNet.Connection
1.0.0
See the version list below for details.
dotnet add package Sindika.AspNet.Connection --version 1.0.0
NuGet\Install-Package Sindika.AspNet.Connection -Version 1.0.0
<PackageReference Include="Sindika.AspNet.Connection" Version="1.0.0" />
paket add Sindika.AspNet.Connection --version 1.0.0
#r "nuget: Sindika.AspNet.Connection, 1.0.0"
// Install Sindika.AspNet.Connection as a Cake Addin #addin nuget:?package=Sindika.AspNet.Connection&version=1.0.0 // Install Sindika.AspNet.Connection as a Cake Tool #tool nuget:?package=Sindika.AspNet.Connection&version=1.0.0
Sindika.AspNet.Connection
Sindika.AspNet.Connection is a .NET library designed to simplify and standardize connection management for various services such as Citus, Kafka, PostgreSQL, RabbitMQ, and Redis. It provides robust tools to configure, validate, and manage these connections efficiently.
Features
Citus Connection Management:
- Simplified connection setup for Citus DB.
- Health checks to ensure availability and performance.
- Configurable settings for database tuning.
Kafka Integration:
- Streamlined connection handling for Kafka brokers.
- Support for producer and consumer setup.
PostgreSQL Support:
- Easy-to-configure connection for PostgreSQL databases.
- Built-in health checks and validation.
RabbitMQ Support:
- Efficient connection management for RabbitMQ messaging.
- Support for queues and message validation.
Redis Integration:
- Configurable connection settings for Redis caching and data storage.
- Supports connection pooling and health checks.
Usage
Citus Connection
Configuration: Use
CitusSettings.cs
to define the necessary settings for connecting to the Citus database.var settings = new CitusSettings { Host = "localhost", Port = 5432, Database = "my_database", Username = "user", Password = "password" };
Connection Manager: Use
CitusConnectionManager
to establish and manage the connection.var manager = new CitusConnectionManager(settings); var connection = manager.GetConnection();
Health Check: Ensure the connection is healthy using
CitusHealthChecker
.var healthChecker = new CitusHealthChecker(); bool isHealthy = healthChecker.CheckHealth(connection);
Future Plans
- Add implementation for Kafka connection management.
- Extend PostgreSQL, RabbitMQ, and Redis connection support.
- Provide detailed examples for each service.
- Include performance optimization tools.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net9.0
- Confluent.Kafka (>= 2.5.3)
- Microsoft.Extensions.Caching.Memory (>= 9.0.1)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 8.0.8)
- RabbitMQ.Client (>= 7.0.0)
- StackExchange.Redis (>= 2.8.16)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Sindika.AspNet.Connection:
Package | Downloads |
---|---|
Sindika.AspNet.Authentication
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.