By thebeedevs on Skatehive
Healthchecker is a reusable React component that helps your apps select the best node to connect to. It can be used by developers in their applications to handle dynamic node changes based on defined criteria. Why is the Healthchecker so useful? Hive applications rely on a network of API nodes. Each node performs specific tasks depending on its configuration. Applications that send and receive data connect to one of the API nodes. If you, as a developer, want to use the Healthchecker in your application, you can configure: a predefined list of API nodes collection of validators for API's methods. current endpoint in use and a function to change it. If a user has a problem with your application, it seems “broken”, the user can check the status of API nodes and APIs and switch to a better API node. So the Healthchecker helps your users to control which API node they are connected to and switch the node based on your criteria. How does the Healthchecker check the quality of the node? The