Standard health check for JSON-RPC? #1494
-
Hi, I'm new to the JSON-RPC standard. I found this library really useful to set up a microservice. However, I wonder if there's a standard way to do a 'health check' on the server without creating a special JSON-RPC method for it. Specifically, I want to set up a HEALTHCHECK in the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey, There is no "standard/embedded way" to do JSON-RPC health check but jsonrpsee provides a middleware to "proxy HTTP get request to a certain RPC handler" example here to help with that. Thus, it really depends for your usecase if you want to handle it such as a separate endpoint on your server |
Beta Was this translation helpful? Give feedback.
Hey,
There is no "standard/embedded way" to do JSON-RPC health check but jsonrpsee provides a middleware to "proxy HTTP get request to a certain RPC handler" example here to help with that.
Thus, it really depends for your usecase if you want to handle it such as a separate endpoint on your server