AspNetCore.Diagnostics.HealthChecks icon indicating copy to clipboard operation
AspNetCore.Diagnostics.HealthChecks copied to clipboard

Add EventStore health check using connection string.

Open MuadDib opened this issue 5 years ago • 5 comments

Clarify that existing check uses URI.

MuadDib avatar Jul 24 '19 14:07 MuadDib

Hi @MuadDib

Why not only one HealthCheck? You can create a connection string using uri /login / pass also and use the same healthcheck?

unaizorrilla avatar Jul 30 '19 12:07 unaizorrilla

Heya @unaizorrilla ,

Thanks for your feedback.

My thought process was:

  • I don't wanna change any of the existing logic (thus not altering the existing EventStoreHealthCheck class)
  • I didn't want to parse connectionString manually (to extract URI/login details) as I want to future proof it if EventStore client ever changes the format
  • There is already Create method on EventStore client that takes connectionString
  • Follow the same code conventions that are already in place (e.g. AzureServiceBus already has multiple health checks)

Let me know if you would like me to explain myself in more details or if I misunderstood something.

Best, Igor

MuadDib avatar Jul 30 '19 14:07 MuadDib

Hi @MuadDib

  • AzureServiceBus exist different health checks for different purposes (queue, topics etc) in this case both are for the same "element" EventStore.
  • You can mantain back compatibility with new registration methods but with only one health check.

Sounds ok for you?

unaizorrilla avatar Aug 18 '19 08:08 unaizorrilla

@MuadDib Please rebase onto master if you are going to continue work on this PR.

sungam3r avatar Feb 23 '22 23:02 sungam3r

ping @MuadDib

sungam3r avatar May 30 '22 05:05 sungam3r

@NielsPilgaard are you interested in?

sungam3r avatar Nov 07 '22 20:11 sungam3r

Version 6.0.2 already uses connection string. If I'm reading this issue correctly, it can be closed as completed. Edit: #232 can also be closed.

NielsPilgaard avatar Nov 07 '22 20:11 NielsPilgaard

Thanks.

sungam3r avatar Nov 07 '22 22:11 sungam3r