-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Labels
Description
I notice each SDK has its own version of handling the health method.
I suggest we find the best way to handle it.
Currently, the GET /health route returns 204 without any body if MeilISearch is running. If MeiliSearch is not running, the SDK would catch another error/exception (ConnectionRefused for example) but not an error coming from the MeiliSerach API.
Option A 😁
health():
- returns
truewhen MeiliSearch is healthy. - returns
falsewhen MeiliSearch is unhealthy (an error is caught)
Option B 🎉
health():
- returns
truewhen MeiliSearch is healthy. - raises the error/exception when MeiliSearch is unhealthy. This makes the program stops.
Option C (mix of both) ♥️
health():
- returns
truewhen MeiliSearch is healthy. - raises the error/exception when MeiliSearch is unhealthy. This makes the program stops.
is_healthy():
- returns
truewhen MeiliSearch is healthy. - returns
falsewhen MeiliSearch is unhealthy (an error is caught)
📢 Let's the vote begin with the right emoji linked to each option! Of course, feel free to argue your point of view and to suggest another option!
TODO:
- meilisearch-dart
- meilisearch-dotnet
- meilisearch-go
- meilisearch-java
- meilisearch-js
- meilisearch-php
- meilisearch-python
- meilisearch-ruby
- meilisearch-rust
- meilisearch-swift
curquizabidoubiwa, curquiza and eskombro