currently, on all apps /api/v1/health naively returns ok regardless of application state, which can be a bit misleading UX... we should start thinking about:
- which abstractions should be introduced to represent edge-case application states
- how to encode edge-case application states as HTTP responses
this also has some conceptual overlap with a potential "diagnostics" API endpoint that we've discussed in the past (for which I couldn't find a tracker issue)
as discussed in #560 one possible edge-case for Pool and JDC is when TP is still doing IBD (although this would only work for Bitcoin Core v31+)... although there could be more
overall for now this is just a high level tracker, this probably deserves deeper brainstorming for the ideal approach
perhaps we should rename the endpoint that's currently named as health into something like alive or responsive... so it can always return ok as a way to signal the app is running
and then we can add another endpoint (called health or diagnostics) which will return data with more fine-grained details
currently, on all apps
/api/v1/healthnaively returnsokregardless of application state, which can be a bit misleading UX... we should start thinking about:this also has some conceptual overlap with a potential "diagnostics" API endpoint that we've discussed in the past (for which I couldn't find a tracker issue)
as discussed in #560 one possible edge-case for Pool and JDC is when TP is still doing IBD (although this would only work for Bitcoin Core v31+)... although there could be more
overall for now this is just a high level tracker, this probably deserves deeper brainstorming for the ideal approach
perhaps we should rename the endpoint that's currently named as
healthinto something likealiveorresponsive... so it can always returnokas a way to signal the app is runningand then we can add another endpoint (called
healthordiagnostics) which will return data with more fine-grained details