Eventuous / eventuous

Event Sourcing library for .NET
https://eventuous.dev
Apache License 2.0
442 stars 70 forks source link

Add subscription measure for RDBMS subs #309

Closed alexeyzimarev closed 2 months ago

alexeyzimarev commented 7 months ago

Is your feature request related to a problem? Please describe.

Subscriptions must be closely monitored to ensure they run close to real time. Eventuous provides support for subscription gap metrics, both in events number (or commit position for $all and ESDB), and time.

However, there's no support for metrics for subscriptions that use RDBMS stores like SQL Server or Postgres.

Describe the solution you'd like

Subscription metrics are available for SQL Server and Postgres implementations.

Additional context

Add IMeasuredSubscription interface to the SQL subscription base class, it should enable both SQL Server and Postgres subs to support metrics.

alexeyzimarev commented 2 months ago

It's done now