Sindika.AspNet.Connection 1.0.0

There is a newer version of this package available.
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                
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="Sindika.AspNet.Connection" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Sindika.AspNet.Connection --version 1.0.0                
#r "nuget: Sindika.AspNet.Connection, 1.0.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.
// 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
  1. 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"
    };
    
  2. Connection Manager: Use CitusConnectionManager to establish and manage the connection.

    var manager = new CitusConnectionManager(settings);
    var connection = manager.GetConnection();
    
  3. 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 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. 
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 Sindika.AspNet.Connection:

Package Downloads
Sindika.AspNet.Authentication

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.1 46 2/5/2025
1.2.0 53 2/4/2025
1.1.0 52 2/4/2025
1.0.0 185 1/17/2025